note 82269 deleted from function.file-exists by danbrown

From: Date: Sun, 11 Jan 2009 18:37:57 +0000
Subject: note 82269 deleted from function.file-exists by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149064@lists.php.net to get a copy of this message
Note Submitter: David Roe ---- I'm not sure if this is a bug or some kind of caching but with PHP 5.1.6 on Linux file_exists returns false positives. The file in question was (before I deleted it) on a samba mounted file system, it seems to work alright with a local file system. Using the following function seems to be a workaround: <? function is_file_there($filename) { return realpath($filename) !== false; } ?>

« previous php.notes (#149064) next »