Re: [PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread Andrey Hristov

Maybe you use 4.1.0 and register_globals is off (in php.ini).
try this var_dump($HTT_SERVER_VARS);

Regards,
Andrey Hristov

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 4:27 PM
Subject: [PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)


> 
> I have a php document which I direct my server to use as a 404 error
> doc.
> 
> In it I write:
> 
> print "$REQUEST_URI\n";
> print "$HTTP_REFERER\n";
> 
> The thing is I get the the error page itself in place of $REQUEST_URI
> and $HTTP_REFERER is blank.
> 
> any suggestions as to how I can get the URL which the user entered?
> I'm runnig Apache on RedHat 7.2
> 
> Thanks!
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread Bas van Rooijen


PHP 4.1.0 :

$_SERVER["REDIRECT_URL"] and
$_SERVER["REDIRECT_STATUS"]

PHP 4.0.6 and earlier:

$HTTP_SERVER_VARS["REDIRECT_URL"] and
$HTTP_SERVER_VARS["REDIRECT_STATUS"]


greets,
bvr. 


On Mon, 17 Dec 2001 14:27:45 GMT, [EMAIL PROTECTED] wrote:

>
>I have a php document which I direct my server to use as a 404 error
>doc.
>
>In it I write:
>
>print "$REQUEST_URI\n";
>print "$HTTP_REFERER\n";
>
>The thing is I get the the error page itself in place of $REQUEST_URI
>and $HTTP_REFERER is blank.
>
>any suggestions as to how I can get the URL which the user entered?
>I'm runnig Apache on RedHat 7.2
>
>Thanks!
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread usenet6


I have a php document which I direct my server to use as a 404 error
doc.

In it I write:

print "$REQUEST_URI\n";
print "$HTTP_REFERER\n";

The thing is I get the the error page itself in place of $REQUEST_URI
and $HTTP_REFERER is blank.

any suggestions as to how I can get the URL which the user entered?
I'm runnig Apache on RedHat 7.2

Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]