Changeset 245 for trunk/webcam
- Timestamp:
- Aug 29, 2009, 9:28:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/webcam/webcam_refresh.php
r228 r245 2 2 include('../global.php'); 3 3 4 $Config['Web']['ShowPHPError'] = true; 4 5 while(1) 5 6 { … … 8 9 { 9 10 $Output = shell_exec('wget "http://kamera-stred/Webcam.jpg?MobilePass='.$Config['Web']['WebcamPassword'].'&V=2&Q=2&B=2&U=0" -O webcam_cache.jpg -T '.($Config['Web']['WebcamRefresh'] - 1)); 10 if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false))11 shell_exec('mv -f webcam_cache.jpg webcam.jpg');11 if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false)) 12 shell_exec('mv -f webcam_cache.jpg webcam.jpg'); 12 13 } 13 14 //echo('.');
Note:
See TracChangeset
for help on using the changeset viewer.