Originally posted by lego
I can't seem to find the thread on rotating sigs
Can anyone help
simple terms though please
Look in general discussion sticky.
or
open notepad put this in save it as rotate.php
PHP:
<?
$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");
?>
then make a new folder in same location as rotate (dont put rotate.php in it) and call it sigs
then link it in your sig
PHP:
[IMG]http://www.yourdomain.com/rotate.php[/IMG]
(SP)