Forum Moderators: coopster

Message Too Old, No Replies

PHP script for displaying webcam images

webcam

         

beatsie

2:54 pm on Jul 6, 2007 (gmt 0)

10+ Year Member



Hi all

I'm looking for some php code to display images from a webcam. I've looked extensively for this but all the code examples I found require the image name to stay constant, with the image being updated via ftp by the webcam

BUT the type of webcam I have to use creates a new image for each FTP update. So you end up woth lots of differently named images. Also the image names are not sequential so you can't do a simple loop through variable names

Can anyone who has had experience of this type of webcam provide any pointers.

Thanks in advance

eelixduppy

5:52 am on Jul 7, 2007 (gmt 0)



>> you can't do a simple loop through variable names

You can, however, loop through the files in order as they appear in the directory (or however you sort them). Refer to the directory functions [us.php.net] for some ideas.