How to pull information from a .ini

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sublimenal
Forum Newbie
Posts: 23
Joined: Sun May 16, 2004 2:17 pm
Location: Massachusetts

How to pull information from a .ini

Post 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
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply