note 68945 added to function.file-exists

From: Date: Wed, 16 Aug 2006 21:32:32 +0000
Subject: note 68945 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-115984@lists.php.net to get a copy of this message
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; } ?> ---- Server IP: 212.124.37.9 Probable Submitter: 80.134.152.133 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- https://master.php.net/note/edit/68945 Del: integrated -- https://master.php.net/note/delete/68945/integrated Del: useless -- https://master.php.net/note/delete/68945/useless Del: bad code -- https://master.php.net/note/delete/68945/bad+code Del: spam -- https://master.php.net/note/delete/68945/spam Del: non-english -- https://master.php.net/note/delete/68945/non-english Del: in docs -- https://master.php.net/note/delete/68945/in+docs Del: other reasons-- https://master.php.net/note/delete/68945 Reject -- https://master.php.net/note/reject/68945 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115984) next »