Quote:
Originally Posted by dozey
If you don't want visitors to manually refresh and see a suspiciously different picture of you almost instantly, I suggest you use something like this (assuming you're running PHP).
PHP Code:
<?php
srand(floor(time()/30));
// seed uniquely only once every 30 seconds
// load a list of all the images
$imagesArray = glob('/pathtoimages/*.jpg');
if(count($imagesArray) > 0){
header('Content-type: image/jpeg');
// output a random image
readfile($imagesArray[array_rand($imagesArray)]);
}
?>
Incidently, I haven't tested that at all.
|
It's not in php I do not know shit about php on the main page it's there to show them there is a guest cam when they click on the page itself it will automatically refresh every 30 seconds.
If you went to the main page then click on the link that click here to enlarge the page that popups refreshs every 30 seconds