php-general | 2001092
Date: 09/24/01
- Next message: Christian Reiniger: "Re: [PHP] Assistance Please - Two-Dimension Arrays"
- Previous message: Steve Edberg: "Re: [PHP] ucwords added functionality?"
- In reply to: Tim Ward: "RE: [PHP] 404 error"
- Next in thread: Tim Ward: "RE: [PHP] 404 error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Monday 24 September 2001 10:08, Tim Ward wrote:
> But how did you get the PHP code to run if the file doesn't exist? If a
> file with a php extension is requested Apache thinks the error returned
> by the PHP parser is a valid response to the request and auto_prepend
> only seems to work after the parser has got the file for parsing.
Simple :)
You tell apache to serve, say, 404.php on a 404, and in *that* file you
place the code :)
If you want to send a 404 from an existing php file, do a
header ('HTTP/1.0 404 Not Found');
include ("404.php");
exit ();
-- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/)Results 1 - 10 of about 201,000,000. Search took 0.08 seconds
- http://www.google.com/search?q=e
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Christian Reiniger: "Re: [PHP] Assistance Please - Two-Dimension Arrays"
- Previous message: Steve Edberg: "Re: [PHP] ucwords added functionality?"
- In reply to: Tim Ward: "RE: [PHP] 404 error"
- Next in thread: Tim Ward: "RE: [PHP] 404 error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

