Suppressing full path dump on interpreter warnings?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Oschler

    Suppressing full path dump on interpreter warnings?

    I read somewhere that showing the full path during an error dump is a "bad
    thing":

    /dir1/dir2/somedir/script_that_die d.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?

    Thanks.


  • Wayne

    #2
    Re: Suppressing full path dump on interpreter warnings?

    On Mon, 25 Jul 2005 11:42:37 -0400, "Robert Oschler"
    <no-mail-please@nospam.c om> wrote:
    [color=blue]
    >I read somewhere that showing the full path during an error dump is a "bad
    >thing":
    >
    >/dir1/dir2/somedir/script_that_die d.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?[/color]

    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.

    Comment

    Working...