if my server has php errors set to on.
is there a way in my script to set them to off?
i think after each function put:
or die ("an error has occurred.")
take a look here:
http://www.php.net/manual/en/function.die.php
The solution to this may be easier than you think...
Just put "@" before the command or statement:
@include("file.ext");
PHP will not report an error if it can't find file.ext.
echo @$var;
PHP will not report an error if it can't refer to $var.
Yes, error_reporting is both a directive and a function. Use the error_reporting() function to supress errors at runtime. See also php.ini