note 27023 added to function.readdir
| From: | mack10 at columbus dot rr dot com | Date: | Wed, 20 Nov 2002 17:59:07 +0000 |
| Subject: | note 27023 added to function.readdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39764@lists.php.net to get a copy of this message | ||
if you are all having trouble with ereg and file.jpg.blah couldn't you just say
if(substr($file, -4)==".jpg") {}
?? im a noob to php, but this method hasn't failed me yet.
--
http://www.php.net/manual/en/function.readdir.php
http://master.php.net/manage/user-notes.php?action=edit+27023
http://master.php.net/manage/user-notes.php?action=delete+27023
http://master.php.net/manage/user-notes.php?action=reject+27023