Page 1 of 1

How to pull information from a .ini

Posted: Sun May 16, 2004 2:17 pm
by sublimenal
Hello everyone Im kinda a noob when it comes to php i know the basics so i could write a script with help. What i want to know is,

I host a game server for a game called rune(A unreal engine game)Im trying to make a script that will will pull the stats from the .ini file i specify, I know where the stats are kept on my rune server but i just need to know how to take that information and auto insert into my home web server. both servers are on the same computer so it will be easier i think. can someone help me with this? even if i cant use the ini to just pull the files maybe i can have a way for the ini to insert it into a sql database and have php take it from there i dunno.

thanks for your time and hopfully a sollution!

-tony

Posted: Sun May 16, 2004 3:29 pm
by delorian
I do not know but parse_ini_file funciton could help a little -> http://us2.php.net/manual/en/function.p ... i-file.php

Posted: Mon May 17, 2004 10:00 am
by pickle
I use [php_man]file[/php_man] to read in files. It reads each line of the file into a separate array element - real easy for traversing.