View Single Post
Old 02-02-2008, 10:21 AM  
minniesoporno
Confirmed User
 
minniesoporno's Avatar
 
Industry Role:
Join Date: Nov 2004
Location: Toronto Canada
Posts: 1,150
Quote:
Originally Posted by dozey View Post
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
minniesoporno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote