Re: file_Exists() and case

From: Date: Sun, 23 Nov 2008 17:52:22 +0000
Subject: Re: file_Exists() and case
References: 1 2  Groups: php.general php.general 
Request: Send a blank email to php-general+get-283729@lists.php.net to get a copy of this message
Stan wrote:
The script is running on an UBUNTU v8.04 LAMP server. Case is supposed to matter, isn't it?
out of interest try putting clearstatcache() before if(!file_Exists($basePicture)) ps.. sure it should be file_exists all lowercase - perhaps you're choosing to use call the function with a capital letter is throwing php in to some kind of "case doesn't matter" mode :p Craige Leeder wrote:
Yes, case matters, but only of the file name, not the extension (I think). The extension is simply a secondary file-type identifier. .jpg = .JPG = .jPg I could be wrong.
# touch test.T # touch test.t # ls test.t test.T

« previous php.general (#283729) next »