Re: PHP ErrorDocument and Apache Environment Vars

From: Date: Wed, 13 Sep 2000 07:20:57 +0000
Subject: Re: PHP ErrorDocument and Apache Environment Vars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16517@lists.php.net to get a copy of this message
This would be what you're looking for. $requestedurl= getenv("SERVER_NAME") . getenv("Request_URI"); getenv("HTTP_REFERER") I think I saw all the info you would need in the FAQ's at www.php.net -- Kind Regards Aaron Sinclair Webmaster, Regional Communications Mercy Ships-Pacific http://www.mercyships-pacific.org.nz > From: Ben Lanson <lanson@bellatlantic.net> > Date: Wed, 13 Sep 2000 01:07:55 -0400 > To: php-general@lists.php.net > Subject: [PHP] PHP ErrorDocument and Apache Environment Vars > > Is it possible to get at the variables that Apaches sets after an error? > For example, I am setting the ErrorDocument for a 404 error to a php > script. Now, in the script, I wish to refer to some of the Apache > variables, at minimum REDIRECT_STATUS and REDIRECT_URL. I haven't been > able to find them as environment vars, and phpinfo() doesn't know anything > about them. Is there something that I've forgotten? It seems to me that > this must be possible, I just can't figure out how!! > > Thanks, > Ben > > > -- > 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 (#16517) next »