PHP turn off errors - in one file only

Posted by Industrial on Stack Overflow See other posts from Stack Overflow or by Industrial
Published on 2010-05-23T21:59:19Z Indexed on 2010/05/23 22:01 UTC
Read the original article Hit count: 136

Filed under:
|
|
|
|

Hi!

I am well aware about error_reporting(0); & ini_set('display_errors', "Off"); to make error messages go away.

What would be an appropriate way to do this - for a specific file or part of code only? Surpressing errors with @'s seems like a bad idea since it apparently slows the code down...

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about error