Re: Capturing 404s with PHP, slight twist

From: Date: Fri, 23 May 2003 15:23:45 +0000
Subject: Re: Capturing 404s with PHP, slight twist
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-148784@lists.php.net to get a copy of this message
The full htaccess is as follows: ErrorDocument 400 /errors.php?code=400 ErrorDocument 401 /errors.php?code=401 ErrorDocument 403 /errors.php?code=403 ErrorDocument 404 /errors.php?code=404 ErrorDocument 500 /errors.php?code=500 Here is the image src tag: <img src="Jason_Larue.bmp" width=90> So while most of the varibles are coming across, I can't seem to get the ones I need (the missing files). ----- Original Message ----- From: "Ernest E Vogelsinger" <ernest@vogelsinger.at> To: "Jeff Lewis" <jeff@hyrum.net> Cc: <php-general@lists.php.net> Sent: Friday, May 23, 2003 11:13 AM Subject: Re: [PHP] Capturing 404s with PHP, slight twist > 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. >

« previous php.general (#148784) next »