Ryan A wrote:

Hi,
I am using fopen to query my site from the clients site and then display the
output of the query.
The problem is when the query does not succeed it outputs this:

Warning: fclose(): supplied argument is not a valid stream resource in
c:\php\www\test-scripts\index.php on line 42

is there any way to "block" just this warning while keeping all other error
handling as is?

Thanks,
-Ryan A

Try doing: if($fd) { fclose($fd); }

--
paperCrane <Justin Patrin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to