Boat Drinks  

Go Back   Boat Drinks > General > General Disruption

Reply
 
Thread Tools Display Modes
Old 27-10-2007, 21:11   #1
CliffyG
Vodka Martini
 
Join Date: Aug 2006
Location: Lower Cambourne
Posts: 576
Default 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?
__________________
CliffyG is offline   Reply With Quote
Old 27-10-2007, 22:01   #2
CliffyG
Vodka Martini
 
Join Date: Aug 2006
Location: Lower Cambourne
Posts: 576
Default

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");  

?>
Any idea why it doesn't work?
__________________
CliffyG is offline   Reply With Quote
Old 27-10-2007, 23:03   #3
CliffyG
Vodka Martini
 
Join Date: Aug 2006
Location: Lower Cambourne
Posts: 576
Default

I was hoping to have it working on here too.
__________________
CliffyG is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 15:40.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.