Re: Capturing 404s with PHP, slight twist

From: Date: Fri, 23 May 2003 15:13:37 +0000
Subject: Re: Capturing 404s with PHP, slight twist
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148781@lists.php.net to get a copy of this message
please use Reply-All to reply to the list as well so anyone can follow this thread (and it goes to the archives, too). At 17:08 23.05.2003, Jeff Lewis said: --------------------[snip]-------------------- >That's the thing, it's not working as I thought. > >If I call player.html and there is a missing image, the player.html still >loads, but an entry is saved in the database. This is fine as I want to >record that missing graphic but those server vars are always empty. > >My htaccess is a basic error document handler calling errors.php --------------------[snip]-------------------- You say $_SERVER['REDIRECT_URL'] is empty? How does the ErrorDocument line in .htaccess look like? Check the HTML code of the page containing the missing image and see what the SRC tag reads. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#148781) next »