You are here: Re: [PHP] I need to create a search that will search partial filesnames of images and display the images. Basically, I have a folder on theinternet that has security camera images dumped into it with a file namelike this: « PHP « IT news, forums, messages
Re: [PHP] I need to create a search that will search partial filesnames of images and display the images. Basically, I have a folder on theinternet that has security camera images dumped into it with a file namelike this:

Posted by Marek Kilimajer on 09/29/13 11:07

Vin wrote:
>
> Here is an example of what I'm talking about:
>
> Filename looks like this: MDcameraname20050108124537001A.JPG
> I would like the output to look like this: 01/08/2005 12:45:37
>

preg_match('/MDcameraname([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/',
$filename, $m);

$m[1] - year
$m[2] - month
..... etc.

 

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

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