Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-29-2002, 11:33 AM
magicbud3344 magicbud3344 is offline
Banned
Join Date: Mar 2002
Location: mEEP
Posts: 0
magicbud3344 is on a distinguished road
Send a message via AIM to magicbud3344
Avatar Scriptorz!

hey, i need some help here
i understand this is a NPC scripting fourm but mayeb you guys know a little PHP and can help me ?
ok i have this scrip here.....
<?php
header("content-type: image/gif");
srand((double)microtime()*10000000);
$i=1;
$handle=opendir("sigs");
while ($file = readdir($handle)) {
if ($file != "." && $file != "..") {
$dirlist[$i] = $file;
$i++;
}
}
closedir($handle);
$randomtopic = rand(1,sizeof($dirlist));
include("sigs/".$dirlist[$randomtopic]);
?>

ok now the question is where do i insert the hosted file names at?
someone please helps me i have no idea what i am doing :P
Reply With Quote
  #2  
Old 10-29-2002, 11:40 AM
King_Arthur_Elven King_Arthur_Elven is offline
Banned
Join Date: May 2002
Posts: 125
King_Arthur_Elven is on a distinguished road
Send a message via AIM to King_Arthur_Elven
Make a dir called sigs and put them in there
and well Bingo
Reply With Quote
  #3  
Old 10-29-2002, 09:19 PM
magicbud3344 magicbud3344 is offline
Banned
Join Date: Mar 2002
Location: mEEP
Posts: 0
magicbud3344 is on a distinguished road
Send a message via AIM to magicbud3344
nm problem solved thnx

Last edited by magicbud3344; 10-29-2002 at 11:41 PM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 +2. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.