Image

Imagedstroy wrote in Imagephp_dev 😊hopeful

Calling all bored experts...

Greetings: I have a problem that I'm trying to solve, and I'm sure there must be a way to do this in either Javascript or in PHP, but I am stumped on where to even look to find out how to do this (I am queen of copy/pasting code snippets and then modifying it to suit my needs.)
I found this community and am hoping someone here is both able and bored enough to maybe help me with figuring out how to do this?

Description:
I have a webcam that is set up to FTP a still-image snapshot to a server every 20 seconds.
I created a webpage which has that image embedded in it, and it's set up to refresh the page every 20 seconds.
Problem: the webcam software I have is too stupid to allow me to put a time-stamp *in* the image, so I need a way to tell my webpage visitors when the webcam image file on the server hasn't been updated in a while to let them know the webcam is offline.

Ideal solution:
I would like to set it up so that the webpage, when loaded, checked the last updated time-stamp of the image file on the server, and compared it to the current time on that server. If the current time is different by more than, say, 2 minutes, I would want the webpage to display "webcam is offline. Last image taken XXXXX" <--displays the timestamp
Would also be happy with:
If the above is really complicated, I would be happy to just have the webpage grab the timestamp on the image file and display it on the webpage.

Does anyone know how to do this?