note 3161 deleted from fopen by ronabop

From: Date: Thu, 10 Aug 2000 20:11:25 +0000
Subject: note 3161 deleted from fopen by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-904@lists.php.net to get a copy of this message
Problem: Php gives an output that I do not want when I try to open an nonexisting file. Code: <PRE>if (! ($file = fopen("http://www.test.com/nonexists.html", "r")) ){ echo"Error"; } else {... </PRE> The not wanted additional output I get is: Warning: fopen("http://www.test.com/nonexists.html","r") - Success in /home/...test/makenews.phtml on line 3 How can I get rid of this?

« previous php.notes (#904) next »