|
Posted by Schraalhans Keukenmeester on 06/12/07 08:10
At Tue, 12 Jun 2007 07:17:09 +0000, Fabrizio let h(is|er) monkeys type:
> My web cam save a file each minute with a name like this
> "history20070611s202635195.jpg"
> Do you know a script in php that can animate the last 60 jpg ? What I
> like is something like this:
>
> http://lacombe.dyndns.org/meteo/cam.html
>
> The problem is that this script work only with sequential file name
> like "picture001", "picture002", etc and not with dated filename like
> "history20070611s202635195.jpg"
>
> Thank you in advance for your help.
>
> Fabrizio
The number following the 's' represents the time, I assume? (HHMMSSmmm) ?
You could put them in an array and sort that using string comparison
or by extracting the time string and casting it to integers and sort
those. Or just sort them based on their maketime perhaps? Then feed the
sorted pics to your image rotation function.
--
Schraalhans Keukenmeester - schraalhans@the.Spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]
"strcmp('apples','oranges') < 0"
Navigation:
[Reply to this message]
|