Hi
I have a webcam uploading images successfully via ftp to a folder on a website, however these images are uploaded with different file names each time depending on the time and date of the upload in the format P_2009-05-07_19-07-13_542.jpg resulting in an ever increasing number of images.
I want to link directly to the newest image in the format mysite.com/webcam/image.jpg
So is it possible to have a script which deletes the oldest entries and renames the latest picture to image.jpg ?
I can then set a CRON job to call this script periodically.
Thanks for the help
c