note 86289 modified in function.file-exists by danbrown
| From: | danbrown@php.net | Date: | Sun, 11 Jan 2009 18:37:28 +0000 |
| Subject: | note 86289 modified in function.file-exists by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149062@lists.php.net to get a copy of this message | ||
Please be sure to avoid escape characters (\n \t \r etc.) as they are not stripped while using this
function.
Constructions like this will always fail (at least on PHP Version 5.2.1):
<?php
$foo = "bar.txt \n";
if (file_exists($foo)) "File exists: ".$foo;
?>
--was--
Please be sure to avoid escape characters (\n \t \r etc.) as they are not stripped while using this
function.
Constructions like this will always fail (at least on PHP Version 5.2.1):
$foo = "bar.txt \n";
if (file_exists($foo)) "File exists: ".$foo;
http://php.net/manual/en/function.file-exists.php