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
A combination of $_SERVER['SERVER_NAME'], $_SERVER['SCRIPT_NAME'], and
$_SERVER['QUERY_STRING'] should get you what you want.
Check out a phpinfo() page for more variables, or do a print_r($_SERVER);
---John Holmes...
- Original Message -
From: "Harriet Xing" <[EMAIL PROTECTED]>
To: <[E
4 matches
Mail list logo