note 29014 added to function.eregi
| From: | alkove at rack1 dot php dot net | Date: | Thu, 30 Jan 2003 12:25:20 +0000 |
| Subject: | note 29014 added to function.eregi | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43128@lists.php.net to get a copy of this message | ||
check if it is an image with a correct url syntaxe:
"^(HTTP://|FTP://|www[0-9]{0,2}[.])[.0-9a-z_-]+[.][a-z]
{2,3}(/[.0-9a-z_ -]+)+[.]
(bmp|jp(g|e)[g]?|png|gif|pcx|tga)$"
allow : www1.server-name.com/image directory/image_file.gif
--
http://www.php.net/manual/en/function.eregi.php
http://master.php.net/manage/user-notes.php?action=edit+29014
http://master.php.net/manage/user-notes.php?action=delete+29014
http://master.php.net/manage/user-notes.php?action=reject+29014