• Welcome to Valhalla Legends Archive.
 

PHP Question

Started by Mephisto, March 06, 2006, 06:46 PM

Previous topic - Next topic

Mephisto

Is there a way to disable PHP from outputting warnings?

Warrior

error_reporting(E_ALL ^ E_WARNING); (iirc)

This may be helpful too
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

rabbit

Or, if you don't care about ANY verbose:
error_reporting(E_NONE);
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

warz

Sorry to bump this post, but it may be helpful to note that if you only want to disable warning or error reporting for a single function call, prefix the call with an @.

Ex: @setcookie