PDA

View Full Version : Favour please


CliffyG
27-10-2007, 21:11
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?

CliffyG
27-10-2007, 22:01
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?

CliffyG
27-10-2007, 23:03
I was hoping to have it working on here too.