Installed a D-link web camera and realized that it keeps uploading images with an added sequence to it to the ftp server. The camera uploads one image per minute to the folder /webcam1 on a ftp server. To present the current image at a web page I need to:
- remove all uploaded files in the folder /webcam1 except the last uploaded.
- rename this last file to winther.jpg
How would I do this as a cron job at the web provider?
I’m a noob at PHP, sorry.