This content has been marked as final. Show 3 replies
Do you need to add "| E_USER_ERROR" to the php.ini setting of error_reporting?
I want display in the browser a message with error verified during the execution.
Check your php.ini settings for display_errors and error_reporting. See http://us.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
You can find your php.ini location and settings with the phpinfo() function.
Almost all production PHP applications shouldn't expose internal errors to end users because this is a security leak. Instead, scripts should "catch" errors, log them to a web server-side file, and generate a pretty error page to show the user. See the Error Handling chapter of the updated PHP & XE guide: http://docs.oracle.com/cd/E17781_01/appdev.112/e18555/ch_seven_error.htm#sthref243