Re: $REDIRECT_ERROR_NOTES

From: Date: Fri, 16 Mar 2001 03:03:01 +0000
Subject: Re: $REDIRECT_ERROR_NOTES
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44197@lists.php.net to get a copy of this message
----- Original Message ----- From: "Paul R. Jackson" <paulj@psy.uq.edu.au> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#44197) next »