27-10-2007, 21:11 | #1 |
Vodka Martini
Join Date: Aug 2006
Location: Lower Cambourne
Posts: 576
|
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?
__________________
|
27-10-2007, 22:01 | #2 |
Vodka Martini
Join Date: Aug 2006
Location: Lower Cambourne
Posts: 576
|
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:
Code:
<? $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"); ?>
__________________
|
27-10-2007, 23:03 | #3 |
Vodka Martini
Join Date: Aug 2006
Location: Lower Cambourne
Posts: 576
|
I was hoping to have it working on here too.
__________________
|