[PHP] RE: Error trapping, on scripts that don't exist

2001-09-05 Thread Tim Ward
thanks to Mahmoud for trying to help, but the php error trapping functions rely on the engine being able to auto-prepend the error trapping script. I tried a solution like this ... ?php if (!file_exists($PATH_TRANSLATED)) { include($DOCUMENT_ROOT/error.html);

[PHP] Re: Error trapping, on scripts that don't exist

2001-09-05 Thread Moody
This is how it works (in very crude not-even-pseudo code, but I'm sure you'll be able to follow the logic!): BEGIN 1. Browser requests a resource (file) from your web server. 2. Web server checks to see whether requested resource exists. 3. if (!2) web server generates 404 error (page does not