View Full Version : Favour please
I want to have a rotating sig but my host doesn't let me do php. Is there anyone out there with a few k of space spare that would let me have 2 images and a php file on their webspace.
Alternatively is there a way of doing it without php?
Just remembered that UKFSN give me a nice chunk of webspace with php enabled, only problem is it doesn't seem to work. I have a rotate.php file in the root and a sig folder with my 2 sigs in, code is:
<?
$array[200];
$elem = 0;
$dirname = "sig";
$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");
?>
Any idea why it doesn't work?
I was hoping to have it working on here too.
vBulletin® v3.7.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.