note 68945 deleted from function.file-exists by nlopess

From: Date: Sat, 13 Jan 2007 22:30:50 +0000
Subject: note 68945 deleted from function.file-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121615@lists.php.net to get a copy of this message
Note Submitter: leibwaechter at web dot de ---- Here is an easy function to check for remote files or an existing URL: <?php function url_exists($url) { $handle = @fopen($url, "r"); if ($handle === false) return false; fclose($handle); return true; } ?>

« previous php.notes (#121615) next »