PHP Version 4.1.2
Take example code,
<?php
error_reporting(0);
print "anything"
print "test";
?>
An error should not generate for line 3 for print "anything" because error_reporting(0) exists. But, php is generating the error anyway.
I want to stop all error reporting on my html pages and email them to me for the production server. error_reporting(0) does not stop this.
THe first thing I am trying to accomplish is STOP ALL ERROR reporting on the HTML page. I can figure the rest out from there.
I do not want it changed in the PHP.ini and would like to only accomplish this task from the php script itself.
Is this possible without using the @ symbol or whatever? Is it not possible to completely shutoff error reporting? You would think for security reasons this would be possible. I searched all over for an answer for this question.
Pleae Help
SBroad