November 20th 2006 09:54 pm

Suppress errors in PHP function calls

Some run-time errors in PHP may cause sensitive information to be output to the browser. PHP provides as special operator, called the error suppression operator (@), as a way to stop these errors from being displayed. By placing ,@ before a function call, most errors will be suppressed. I say most because this operator will only suppress errors that for functions that use PHP’s built in error reporting functionalities.

For more information, check out the Error Control Operators section of the PHP manual.

No Comments yet »

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.

« Fun With Flickr Feeds | Vertical MySQL Result Output »