Re: 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:

From: Date: Thu, 03 Feb 2005 22:15:13 +0000
Subject: Re: 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:
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-208047@lists.php.net to get a copy of this message
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.

« previous php.general (#208047) next »