You are here: Re: showing images from a directory « PHP Programming Language « IT news, forums, messages
Re: showing images from a directory

Posted by Mara Guida on 10/26/97 11:34

Mara Guida wrote:
> ### this will match foto5jpg without extension;
> ### probably you will not have such a filename in the directory
> ### but you may want to remove the () and escape the .
> if (preg_match("/\w+(.jpg)/", $file)) {

Just one more thing ...

preg_match("/\w+(.jpg)/", $file)

will also match "rejpg.doc"

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация