How do they do this?!

Soldato
Joined
18 Oct 2002
Posts
5,586
Location
Stone, Staffordshire
If you check out this link there is an image on the web page from a webcam

http://www.marinelodge.co.uk/webcam/index.php

It looks to me that the image is stored in a directory for the date the capture was taken and then it has the time as the file name. How does the page know which file to display?

The owner of the site has allowed me to display the webcam image on my own site www.the-pier.co.uk as the capture shows the pier in it but I'm not sure how I can code my webcams page to show the image.

The other sites that I'm linking to just seem to upload a new static image every so many mins.

TIA
 
There may be some php in there to simply display an image from said directory. It could also be that the php simply picks the most recently updated image? A few ways of achieving that.
 
Personally I would contact the webmaster again and ask to use his script. I guess it would be hard without having local folder access though.
 
It may be that the script running is an embedded php file of it's own. If you could find that location, you could embed it yourself easily. Contact the webmaster!
 
Back
Top Bottom