note 69626 added to function.file-exists

From: Date: Wed, 13 Sep 2006 11:22:00 +0000
Subject: note 69626 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-117093@lists.php.net to get a copy of this message
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. ---- Server IP: 217.13.201.10 Probable Submitter: 84.57.8.20 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- https://master.php.net/note/edit/69626 Del: integrated -- https://master.php.net/note/delete/69626/integrated Del: useless -- https://master.php.net/note/delete/69626/useless Del: bad code -- https://master.php.net/note/delete/69626/bad+code Del: spam -- https://master.php.net/note/delete/69626/spam Del: non-english -- https://master.php.net/note/delete/69626/non-english Del: in docs -- https://master.php.net/note/delete/69626/in+docs Del: other reasons-- https://master.php.net/note/delete/69626 Reject -- https://master.php.net/note/reject/69626 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117093) next »