note 7949 added to fopen

From: Date: Mon, 21 Aug 2000 22:05:16 +0000
Subject: note 7949 added to fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-2908@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? http://www.php.net/manual/function.fopen.php

« previous php.notes (#2908) next »