Re: Re: file_Exists() and case
| From: | Ashley Sheridan | Date: | Sun, 23 Nov 2008 19:36:28 +0000 |
| Subject: | Re: Re: file_Exists() and case | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283749@lists.php.net to get a copy of this message | ||
On Sun, 2008-11-23 at 13:12 -0600, Stan wrote:
> This thread began because file_exists() WILL NOT tell that a file exists FOR
> SURE and FOR CERTAIN if the file you check for happens to be named
> whatever.jpg and whatever.JPG exists. I know this because IMagick then
> chokes on whatever.jpg because it DOESN't exist.
>
>
>
If you look at the manual for file_exists, you'll note that someone has
created a function that will check if a file exists, and make sure that
it is the correct case as well.
Ash
www.ashleysheridan.co.uk