note 33131 added to function.file-exists

From: Date: Tue, 17 Jun 2003 14:11:56 +0000
Subject: note 33131 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-50496@lists.php.net to get a copy of this message
May be it is a matter of configuration of the server, anyway: <br> file_exists("") returns TRUE on PHP4.2.3 installed locally (without a server) <br> file_exists("") returns FALSE on PHP4.1.2 installed on a linux server <br><br> To solve the problem of the different behaviour the if statement I modified the script in this way:<br> if(file_exists($filename) and $filename!="")<br> {<br> }<br> ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33131 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33131&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33131&report=yes

« previous php.notes (#50496) next »