On Tuesday, June 25, 2002, at 03:22 PM, Erik Price wrote:
> However, I don't like using $_SERVER['QUERY_STRING'] because if there
> are empty GET variables, it grabs them. So, if you prefer, you can do
> this:
>
> $getVarsArr = array();
> foreach ($_GET as $getVarName => $getVarVal) {
>
On Tuesday, June 25, 2002, at 02:56 PM, Harriet Xing wrote:
> Would anyone know how to get the http request url string in php?
> i.e., if the request is "http://www.myserver.com/test.php?param1=123";,
> how can I obtain this string in test.php?
$request = "http://"; . $_SERVER['HTTP_HOST'] .
On Wednesday 26 June 2002 02:56, Harriet Xing wrote:
> Hi,
>
> Would anyone know how to get the http request url string in php?
> i.e., if the request is "http://www.myserver.com/test.php?param1=123";, how
> can I obtain this string in test.php?
Look through the $_SERVER (or $HTTP_SERVER_VARS) va
arriet Xing" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 25, 2002 2:56 PM
Subject: [PHP] [php] How to get request url string and server hostname
Hi,
Would anyone know how to get the http request url string in php?
i.e., if the request is "http://www.myserve
Hi,
Would anyone know how to get the http request url string in php?
i.e., if the request is "http://www.myserver.com/test.php?param1=123";, how can I
obtain this string in test.php?
Thank you,
Harriett
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
5 matches
Mail list logo