php3-list | 199903

Re: [PHP3] php & webcam trouble From: Richard Lynch (lynch <email protected>)
Date: 03/17/99

If the page is reloading, but not the image, you may need to have your
capture.jpg actually be a script that not only sends the image, but also
some headers first to specify expiration date/time...

If the page itself is not reloading, try making it CONTENT="20;URL=whatever.htm"

If all else fails, add a ? to the end of each URL (the page and the photo)
to make everything think it's a GET query.

>Hello everyone
>
>I have some trouble with a webcam script... it won't update. I suspect it's
>more a server than a php problem right now, but I am not sure.
>
>What I try to accomplish is this: A webcam feeds a picture every 5 seconds.
>I wished to give the user the choice of how many updates they want to get,
>say 5,10,15,20,...whatever seconds. This part works, no problem, simply
>using a form which submits the results to itself and uses it in a metatag.
>
>But...no matter what I tried, the picture won't change in the browser. I can
>see that the picture gets uploaded properly, I can see that the date changes
>accordingly (added a php line to check that), but the browser (tried opera,
>netscape and internet explorer, the latter even on linux)... nothing, they
>won't update the picture.
>
>I am completely lost. I think I must miss something basic again, but what?
>
>In the simplest form, the page would look like this:
>----<snip>----
><html>
> <head>
> <meta http-equiv="Refresh" content="20">
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <meta name="generator" content="vi - the only real html editor">
> <title>CyberEyes</title>
> </head>
> <body bgcolor="#000000" text="#ffc050">
> <img src="capture.jpg"><br>
> Picture taken at: <? echo date( "l, d.m.Y
>H:i:s",filectime("capture.jpg")) ?> [MET]
> </body>
></html>
>----</snip>----
>
>Somewhat lost,
>Jens Knoell
>
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
>List administrator: zeev-list-admin <email protected>

-- "TANSTAAFL" Rich lynch <email protected> webmaster@ and www. all of:
R&B/jazz/blues/rock - jademaze.com music industry org - chatmusic.com
acoustic/funk/world-beat - astrakelly.com sculptures - olivierledoux.com
my own nascent company - l-i-e.com cool coffeehouse - uncommonground.com

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>