Re: I need to create a search that will search partial filesnamesof images and display the images. Basically, I have a folder on theinternetthat has security camera images dumped into it with a file namelike this:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Marek Kilimajer" <lists@xxxxxxxxxxxxx> wrote in message
news:4202A271.6010004@xxxxxxxxxxxxxxxx
> 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.

Thank you all for your help.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux