Re: 404 error

From: Date: Sun, 23 Sep 2001 18:46:00 +0000
Subject: Re: 404 error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68435@lists.php.net to get a copy of this message
I don't think I said it clear enough :) Sorry abou that. This is what I did: <? echo "Page with error: $HTTP_REFERER<br>"; echo "Error Link: $PHP_SELF"; ?> This definitely did not work. $HTTP_REFERER did not output anything and if I understand correctly this just gives me the page that has the link that was clicked on. $PHP_SELF I was hoping would give me the link that gave the error since in your browser it shows the address of the broken link, but alas this gave me my 404.htm page instead, which was expected. What I want is that a person on "index.htm" clicks on a link "hello.htm", that file is not found so at this point I want to be able to echo Page with error: index.htm Error Link: hello.htm I hope that was a little clearer :) Rick > So sprach »Richard Baskett« am 2001-09-23 um 05:40:52 -0700 : >> I know how to get the web page that created the 404 error, but how do I get >> the link that created the 404 error? Is there a way of doing this? Im sure > > Check the referer. > > Alexander Skwar > -- > How to quote: http://learn.to/quote (german) > http://quote.6x.to (english) > Homepage: http://www.digitalprojects.com | > http://www.iso-top.de > iso-top.de - Die günstige Art an Linux Distributionen zu kommen > Uptime: 3 hours 59 minutes >

« previous php.general (#68435) next »