Re: blocking warning: Warning: fclose()

From: Date: Tue, 30 Mar 2004 18:45:05 +0000
Subject: Re: blocking warning: Warning: fclose()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181853@lists.php.net to get a copy of this message
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>

« previous php.general (#181853) next »