file checking

From: Date: Fri, 23 Jun 2000 18:48:51 +0000
Subject: file checking
Groups: php.general 
Request: Send a blank email to php-general+get-2844@lists.php.net to get a copy of this message
Here's my code: $fp = fopen( "http://media.gospelcom.net/mnn/news/2000/06/44-5min-23-06-2000.mp3", "r"); if ($fp) { print "It's there"; } else { print "It's not there"; } If the file exists, it works fine, but if it *doesn't* exist, it prints this: Warning: fopen("http://media.gospelcom.net/mnn/news/2000/06/44-5min-23-06-2000.mp3","r") - Success in /usr/local/www/gospelcom/docs/mnn/mnn/beta/remotetest.php on line 5 It's not there Why is it printing that Warning? I tried is_file and is_readable, and both return that the file isn't not there, regardless of whether it is. :( -- Topher Manager of Internet Services Cornerstone Communications

« previous php.general (#2844) next »