note 7949 deleted from fopen by ronabop

From: Date: Wed, 23 Aug 2000 07:36:54 +0000
Subject: note 7949 deleted from fopen by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2952@lists.php.net to get a copy of this message
<pre> $fp = @fopen("http://www.someurl.com/testfile.php3","r"); if ($fp) { print"The file exists!"; } else { print"The file does not exist"; } </pre> Does NOT work for me. When specifying the URL of a file that does NOT exist but the domain does exist, I get a 404 error, so $fp is never false. Does anyone have an alternative way?

« previous php.notes (#2952) next »