note 45165 rejected from function.file-exists by sp

From: Date: Fri, 27 Aug 2004 19:32:30 +0000
Subject: note 45165 rejected from function.file-exists by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75456@lists.php.net to get a copy of this message
Note Submitter: james at vantslot dot net ---- How do you test if a file exists if it has a "#" sign in it? Unfortunately I've got no control over what characters go into the name of a file and need to test if it exists. file_exists($filename) fails if the filename contains a "#" sign. Any ideas how to test the existence of the file and then be able to read it? I've tried wrapping the base filename in quotes but that doesn't seem to work either.

« previous php.notes (#75456) next »