Thread: how?
View Single Post
  #3  
Old 12-05-2004, 10:35 AM
teej is offline teej

Join Date: Jul 2003
Location: North Carolina
Posts: 3,075

Send a message via ICQ to teej Send a message via AIM to teej Send a message via Yahoo to teej
absolutely you have to make shure you have a host for this though, or else its not going to be able to work.

First off make a folder anywhere, I just made one on my desktop called "mysigs".
Open the folder: right click : goto new text document
Paste this code in there:

Quote:
<?

$array[200];
$elem = 0;
$dirname = "sigs";
$dh = opendir($dirname);
while ($file = readdir($dh)) {
if (!is_dir("$dirname/$file"))
$array[$elem] = $file;
$elem = $elem + 1;
}

srand((double)microtime() * 10000000);
$rand_keys = array_rand($array);
$temp = $array[$rand_keys];

header("Location: $dirname/$temp");

?>



Goto file: save as : and save the document as rotate.php
Next make a folder in your current folder called sigs (you must use this name) and place all of your images(signatures) in this folder.
And thats it, just upload it to your host and you're done
__________________


Quote:
Originally posted by Scott
ok, now that we are all a little dumber for reading that, back to how much IE is better than any other browser
Reply With Quote