Re: Webcam on websites? Ugh!!!
| From: | Hugh Bothwell | Date: | Sun, 16 Dec 2001 18:16:37 +0000 |
| Subject: | Re: Webcam on websites? Ugh!!! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77871@lists.php.net to get a copy of this message | ||
"Webleycity" <webleycity@ukonline.co.uk> wrote in message
news:B8417609.2CD8%webleycity@ukonline.co.uk...
>
> A client wants a webcam on his site. Does any body know what script is
used
> and how it works.
The camera should come with a prog to take a snapshot.
Write a batch file that takes a snapshot, then uploads it
to your web server. Write a batch file that calls the first
batch file every 55 seconds, OR make it a timed job via
cron.
Add javascript to the web page to call the new
graphic every 60 seconds and swap it in after it is finished
loading. The five-second difference is to ensure that
small delays will not cause the same picture to be reloaded
again.
If you have loads of space, you could keep an archive;
otherwise I suggest overwriting the existing image each
time or maybe alternating between two names.