On Mon, 25 Jul 2005 11:42:37 -0400, "Robert Oschler"
<no************@nospam.com> wrote:
I read somewhere that showing the full path during an error dump is a "bad
thing":
/dir1/dir2/somedir/script_that_died.php
Like during a parse error or a warning from the interpreter. How can I tell
the PHP interpreter to show only the script filename and if possible, one or
two directories above?
Disable automatic error display and create your own error handler --
then put in whatever you want. For all public facing websites, I
always create a "friendly" error page anyway that doesn't go into
detail. Only during debugging would I want the errors fully
displayed.