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:
| From: | Vin | Date: | Thu, 03 Feb 2005 22:21:08 +0000 |
| Subject: | 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: |
||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208048@lists.php.net to get a copy of this message | ||
"Marek Kilimajer" <lists@kilimajer.net> wrote in message
news:4202A271.6010004@kilimajer.net...
> 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.