Last change
on this file since 41 was 25, checked in by george, 17 years ago |
Opraveno: Načítání obrázku web kamery.
|
File size:
470 bytes
|
Line | |
---|
1 | <?php
|
---|
2 | include('../global.php');
|
---|
3 |
|
---|
4 | $RefreshPeriod = 1;
|
---|
5 |
|
---|
6 | Header('Content-type: image/jpeg');
|
---|
7 | // Header("Cache-Control: no-cache");
|
---|
8 | // Header("Pragma: no-cache");
|
---|
9 |
|
---|
10 | $ModifyTime = filemtime('webcam.jpg');
|
---|
11 | if((time() - $RefreshPeriod) >= $ModifyTime)
|
---|
12 | {
|
---|
13 | exec('wget "http://192.168.1.114/Webcam.jpg?MobilePass='.$Config['Web']['WebcamPassword'].'&V=2&Q=2&B=2&U=0" -O webcam_cache.jpg');
|
---|
14 | exec('mv -f webcam_cache.jpg webcam.jpg');
|
---|
15 | }
|
---|
16 |
|
---|
17 | echo(file_get_contents('webcam.jpg'));
|
---|
18 |
|
---|
19 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.