[thelist] one-line suppress PHP warnings?

Joe Flintham list at menticulture.com
Tue Mar 25 18:20:19 CDT 2008


Stephen Rider wrote:
> Is there a way to write the include so that if the file is _not_ found  
> it will NOT write an error to the logs?
>
>   
Hey Stephen
Have you tried:

@include "file.inc";

? You may need to tweak php.ini or use ini_set to control whether (and 
which) errors are logged or not.

Joe



More information about the thelist mailing list