note 33131 deleted from function.file-exists by didou
| From: | didou@php.net | Date: | Tue, 17 Jun 2003 14:18:00 +0000 |
| Subject: | note 33131 deleted from function.file-exists by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50497@lists.php.net to get a copy of this message | ||
Note Submitter: diegotofa@katamail.com
----
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>