View Single Post
  #17  
Old October 24th, 2003, 03:49 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default Re: Ruatha: PBW Alternate Scripts

Quote:
Originally posted by Imperator Fyron:
I suggest you not have any code read in the contents of text files to get variables. Instead, have files like "config.php" and "playerdata.php". Reading from text files is relatively slow, and prone to error, much more so than just having .php files included. And, it still just requires editing files to be installed, so it is not that big a change for the user of the script.

Also, it would be good to be able to have all the main .php files in a folder, and then have various folders for different games in subfolders, with their appropriate config files and gamefile etc. folders. So you have something like:

se.net/pbw contains the pure code .php, with nothing specific to any game
se.net/pbw/b5modgame contains the mentioned config.php and playerdata.php, as well as its subfolders of gamefile, turnfiles, etc.
The multiple folder thing will be fixed to next Version (in a day or two)
Thanx for the suggestion.
About the PHP instead of txt, will think of a good way to fix that, should be doable without to much hassle.
How where you thinking, that I should include variables in include.php where all names etc are entered and then include that file into the main index.php with the include instruction? That seems easiest.
And then make a web page to enter and alter the data in text boxes, so that no real text editing is necessary. Will do this!

[ October 24, 2003, 15:00: Message edited by: Ruatha ]
Reply With Quote