Re: newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"?
| From: | Lupus Michaelis | Date: | Tue, 26 Aug 2008 16:59:41 +0000 |
| Subject: | Re: newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278738@lists.php.net to get a copy of this message | ||
Ford, Mike a écrit :
case '.gif':
case '.png':
case '.jpg':
case '.jpeg':
Be careful. The end of the filename is just a clue on what is filled the file. See <http://fr3.php.net/manual/en/book.fileinfo.php> for more acurate result.
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org