Hi,
I have my error404.php page which includes
these lines:
echo "Document not found...";
echo $_SERVER['REDIRECT_URL'];
I also created a dummy link on another page, something
like
<a href=http://example.com/dummylinktogoto errorpage>dummy </a>
When I click on the link I go to the error page
however all I see is:
Document not found.../error404.php
But I expected to see what caused the error, so that I can
record it to see if somebody is referring to some non-existent
pages on my site.
I used $_SERVER['REDIRECT_URL'] because of this O'Reilly
article: http://www.onlamp.com/pub/a/onlamp/2...avidsklar.html
Unfortunately either I miss something, or the article does not
give correct info (or something's stragen with the configuration
of the Apache at my hosting service).
Any ideas? What should I check? Why $_SERVER['REDIRECT_URL'] hold
the value "/error404.php"? How can I find the value
I'm looking for?
Thanks in advance.
--
Emre Sevinc
eMBA Software Developer Actively engaged in:
http:www.bilgi.edu.tr http://ileriseviye.org
http://www.bilgi.edu.tr http://fazlamesai.net
Cognitive Science Student http://cazci.com
Comment