|

Re: [PHP3] php & webcam trouble
From: Daniel Lashua (daniel.lashua <email protected>)
Date: 03/18/99
You could easily write a script that simple sent a few DONT CACHE ME
headers and then sent the actual web cam image. However.... an easier
method might be this.
Make a counter.... and when you call the page call it like this
http://me.com/webcam.php3?seconds=$seconds&counter=$counter
then update the counter each time so that when the browser goes to get the
image... instead of getting http://webcampicture.jpg it gets
http://webcampicture.jpg?$counter. This way the URL will ALWAYS look new
to the browser and therefore NEVER get a cached picture. In the META
refresh tag you are using, make sure you pass the counter there too. If
run correctly, each time the counter loads one should see the next number
up in the location bar of the browser.
Daniel
On Wed, 17 Mar 1999 lynch <email protected> wrote:
) 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>
)
)
--
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>
|