note 69626 deleted from function.file-exists by bobby
| From: | bobby@php.net | Date: | Wed, 13 Sep 2006 14:29:05 +0000 |
| Subject: | note 69626 deleted from function.file-exists by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117107@lists.php.net to get a copy of this message | ||
Note Submitter: sascha _ diebel AT web DOT de
Reason: non-english
----
on windows file_exists don't works correctly:
if the filename is html-code (or contains some special chars), file_exists also returns true.
on linux it works correct and returns false.
if u want to use html-code and check if it is a filename or code use if_file() to get false.
example (german): http://browsergame.info/strange_error.php
i have a function which makes string replacement like BB-Codes ... and the parameter can be a
filename which code will be loaded or a code directly.