473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How animate dated filename like "history20070611s202635195.jpg"

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

Jun 12 '07 #1
1 1184
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 - sc*********@the.Spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') < 0"

Jun 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Udo Pecher | last post by:
I apply the following code test.php $upload =ftp_put($conn_id,"test.jpg","$dat",FTP-BINARY); where $dat is a local filename which I like to move via FTP. "test.jpg" ist the filename on the...
14
by: Vilmar Brazão de Oliveira | last post by:
Hi all, I was using: <% Set objWshell = Server.CreateObject("WScript.Shell") objWshell.Run "%COMSPEC% /C ren topoX.jpg topo_cliente.jpg", 0, TRUE %> BUT the comand COMSPEC disapeared of all my...
9
by: Don | last post by:
Does anyone know where I can find a client-side function I can reference from within an HTML/JavaScript web page? I'm currently using a core PHP function to do this, but I'd rather do it on the...
5
by: mr_cross | last post by:
Hi. It's been a very long time since I did any extensive html coding, so all I recall are the basics. I'm looking to create a web site with a lot of jpg pictures divided among several web pages. Is...
5
by: Fabrizio | last post by:
My web cam save a file each minute with a name like this "history20070611s202635195.jpg" Do you know a script that can animate the last 60 jpg ? What I like is something like this: ...
2
by: defn noob | last post by:
from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file =...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.