Question

I want to reproduce the live camera feed from http://www.falakrotop.meteodrama.gr/webcam.php. I want to display a resized (200x150) image of the live feed camera image on this website. Using iframe caused scrollbars to appear, making hard to see the (huge) image in a small 200x150 box. Is there a way to only take the live image, resize it and display it on my website (and also refreshing live)? I cannot use iframe to only use the image, as it seems to be dynamically generated...

Was it helpful?

Solution

The webcam seems to be offline now, but have you tried this?

<img src="http://www.falakrotop.meteodrama.gr/tincam1.jpg" />

If that doesn't work, you could try scraping it using fsockopen. You will get the full page then, and after that, use preg_match to get to the image.

I would also highly recommend clearing it with the webmaster / owner of the site. You would be sending a lot of requests to his/hers website.

You can find some good examples on the pages I linked to. I hope this helps. Good luck!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top