> I am writing a script that will send me an email every time a 404 
> error is returned for an http request.  So far I have the script 
> working so that it will email me and inform me of the URL of the 
> page that has the offending link by using the HTTP_REFERER environment 
> variable.  I would also like to find out what the requested page URL is. 
> I have checked phpinfo() for info on other Apache enviro variables, 
> but can't seem to find anything that would work. How can I do this? 
> Is it possible?

Sure - $REQUEST_URI is what you're looking for.

Example of its use: http://www.inww.com/typesomecrapinhere :)

Jason

-- 
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]

Reply via email to