You are here: Re: How animate dated filename like "history20070611s202635195.jpg" « PHP Programming Language « IT news, forums, messages
Re: How animate dated filename like "history20070611s202635195.jpg"

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]


Удаленная работа для программистов  •  Как заработать на 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

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