Re: Is there any way to show the error file without showing the dir information?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cchereTieShou wrote:
In many case, if there is an error happen in a php script, it may
return an error message something like "
Parse error: parse error, unexpected T_FUNCTION in
/home/content/usr/html/test.php on line 6"

Is there any way to not show the dir information, but only as
"test.php on line 6" instead?

If this is really important for you then you should check out this link:

http://php.net/manual/en/function.set-error-handler.php

Although personally I like detailed info going into my error log.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux