header("HTTP/1.0 404 Not Found");
change header() into whatever you want to include at it's place.
Careful with this though, make sure that the files script is trying to
include do never get below a certain directory. Otherwise I can dispay
myself your /etc/passwd and you're freaked :-)
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
Craig Donnelly writes:
> Is there a way to setup either the apache/php directives to produce a custom
> 404 if an include file "fails to be included" ??
> Or is this a job for .HTACCESS??
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php