note 74075 added to function.file-exists

From: Date: Fri, 23 Mar 2007 03:55:32 +0000
Subject: note 74075 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-124737@lists.php.net to get a copy of this message
not to overshadow anyone making url_exists functions, but... function url_exists($url) { if ((strpos($url, "http")) === false) $url = "http://" . $url; if (is_array(@get_headers($url))) return true; else return false; } enjoy! ---- Server IP: 216.194.113.175 Probable Submitter: 67.82.29.1 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- https://master.php.net/note/edit/74075 Del: integrated -- https://master.php.net/note/delete/74075/integrated Del: useless -- https://master.php.net/note/delete/74075/useless Del: bad code -- https://master.php.net/note/delete/74075/bad+code Del: spam -- https://master.php.net/note/delete/74075/spam Del: non-english -- https://master.php.net/note/delete/74075/non-english Del: in docs -- https://master.php.net/note/delete/74075/in+docs Del: other reasons-- https://master.php.net/note/delete/74075 Reject -- https://master.php.net/note/reject/74075 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124737) next »