----- Original Message -----
From: "Paul R. Jackson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 10:34 AM
Subject: [PHP] $REDIRECT_ERROR_NOTES
> Hello,
>
> This is my first post to the group so go easy on me.
>
> I am using apache httpd.conf file to redirect 404 errors to a page which
> basically displays and error message, amongst other things. It all works
> fine but...
>
> I want to be able to find out what the document that they attempted to
> access was named, so I can display and log the value to a special log that I
> am using for othger purposes.
>
> Should the 'not found' url be in $REDIRECT_ERROR_NOTES ???
>
> This value doesn't seem to be set. And its not in any of the HTTP_ENV_VARS
> or HTTP_SERVER_VARS.
Try $HTTP_SERVER_VARS['REQUEST_URI'] (and others if needed)
Works on my Apache/PHP4.0.4pl1 both virtual and non-virtual server.
--httpd.conf--
ErrorDocument 403 /error/not_permitted.php
ErrorDocument 404 /error/file_not_found.php
-------------
Or are you using CGI version of PHP? (Even if you have access to httpd.conf??)
I don't use CGI version, but you can still put phpinfo() in your error
docuements and see if there is anything useful values are set or not. If you can
use DSO, I recommend to do it.
Regards,
--
Yasuo Ohgaki
> I know the answer will be something simple but I cant seem to find much help
> anywhere. Any help or push in the direction of a useful web page would be
> nice.
>
> Paul
>
>
>
> --
> 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] $REDIRECT_ERROR_NOTES Paul R. Jackson
- Re: [PHP] $REDIRECT_ERROR_NOTES David Robley
- Re: [PHP] $REDIRECT_ERROR_NOTES Paul R. Jackson
- Re: [PHP] $REDIRECT_ERROR_NOTES David Robley
- Re: [PHP] $REDIRECT_ERROR_NOTES Paul R. Jackson
- [PHP] I WORKED IT OUT Re: [PHP] $REDIRECT_ERROR_NOT... Yasuo Ohgaki
- [PHP] I WORKED IT OUT Re: [PHP] $REDIRECT_ERROR_NOT... Paul R. Jackson