note 103436 added to function.file-exists

From: Date: Wed, 13 Apr 2011 14:26:53 +0000
Subject: note 103436 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-178795@lists.php.net to get a copy of this message
this code here is in case you want to check if a file exists in another server: <?php function fileExists($path){ return (@fopen($path,"r")==true); } ?> unfortunately the file_exists can't reach remote servers, so I used the fopen function. ---- Server IP: 69.147.83.197 Probable Submitter: 187.55.215.170 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- https://master.php.net/note/edit/103436 Del: integrated -- https://master.php.net/note/delete/103436/integrated Del: useless -- https://master.php.net/note/delete/103436/useless Del: bad code -- https://master.php.net/note/delete/103436/bad+code Del: spam -- https://master.php.net/note/delete/103436/spam Del: non-english -- https://master.php.net/note/delete/103436/non-english Del: in docs -- https://master.php.net/note/delete/103436/in+docs Del: other reasons-- https://master.php.net/note/delete/103436 Reject -- https://master.php.net/note/reject/103436 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178795) next »