[thelist] one-line suppress PHP warnings?
Stephen Rider
evolt_org at striderweb.com
Tue Mar 25 16:46:00 CDT 2008
Hi --
I'm working on a PHP script that at one point has an include. The
file included may or may not be present, and the program works fine
either way, BUT if the file is missing it writes a warning to the logs.
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?
I was doing a file_exists(), but I'm trying to streamline as much as
possible -- this would reduce three lines to one.
Thanks,
Stephen
--
Stephen Rider
<http://striderweb.com/>
More information about the thelist
mailing list