Script for webcam.
I have a sourvelliance wi-fi webcam (DCS-2121) that every minute send a snapshot on my web server using ftp protocol.
Every day a folder is crated automatically from webcam on webserver with name of date yyyymmdd
(ie [login to view URL]\20110220\ for today).
Every hour a subfolder is created whit name the number of hour hh
(i.e. [login to view URL]\20110220\10\ at ten o clock)
Every minute a jpg is send on server with filename: [login to view URL]
(i.e
[login to view URL]\20110220\10\[login to view URL]
My request: i need an php webpage (i.e. [login to view URL] ) or a cron job that do:
1) display the "last" image ready
2) if possible create a copy of last image as [login to view URL]
3) if possible delete all folder, subfolder and images jpg from all folder with date older that today (delete \20110218 \20110219 but let \20110220 ) to avoid go over of quote on server space disk)
Please detail in your offer if options 2 and/or 3 are possible to do)