note 86289 deleted from function.file-exists by danbrown
| From: | danbrown@php.net | Date: | Sun, 11 Jan 2009 18:37:43 +0000 |
| Subject: | note 86289 deleted from function.file-exists by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149063@lists.php.net to get a copy of this message | ||
Note Submitter: ThA-B
----
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;
?>