PDA

View Full Version : Check this out.. random signature


Weasel
01-06-2002, 07:12 PM
Check this out, this is pretty interesting:

http://www.almostsmart.com/sig.html

Refresh the page a few times, it's random.

Here's how to do it in UBB code:


[ IMG ]http://www.almostsmart.com/sig.html[ /IMG ]

take out the spaces in the above code

Weasel
01-06-2002, 07:58 PM
Here's the code I used to do that:


<?
$url = "images/design/sig/sig*.gif";
srand((double) microtime() * 1000000);
$random = rand(1,13); //random number between 1 and 13 inclusive.
$url = str_replace("*", $random, $url);
@header("Location: $url");
?>