View Full Version : Can I turn off warnings in PHP5 on a per script basis?
Trana
05-31-2005, 01:29 AM
Anyone know how to do this?
filburt1
05-31-2005, 01:34 AM
Warnings always give important information. Even notices sometimes too. However, to supress a warning for a specific function call, prepend the function name with @.
shak_attack
05-31-2005, 02:19 AM
Hmm, but if you want turn it for completely in that single script, don't you just slot in:
error_reporting(0);
at the top of the file?
Trana
05-31-2005, 02:06 PM
I tried the error_reporting just after <?php but it doesn't seem to be suppressing the warnings.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.