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:58:07 +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-278737@lists.php.net to get a copy of this message | ||
Ford, Mike a écrit :
case '.gif':
case '.png':
case '.jpg':
case '.jpeg':
echo $file;
Be carefull. The « extension » is just a clue to know what filled the file. See <http://fr3.php.net/manual/en/book.fileinfo.php>.
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org