Parsing conf file.
Posted: Thu Mar 20, 2008 1:50 pm
I'm a total noob concerning php and i would appreciate some help. I need to read and parse config file and save values to array of arrays. My problem is how to parse it. Conf file looks like this:
//some comments...
//some comments...
.
.
.
variable_name=variable_value
//some comments
//some comments
.
.
.
variable_name=variable_value
and so on (n times).
I need to read this file and store these three values (comments,name,value) for every variable in array ($arr1 = array ("arr2" => array ("name","value","comments"))).
Any help is welcome. Thank you.
//some comments...
//some comments...
.
.
.
variable_name=variable_value
//some comments
//some comments
.
.
.
variable_name=variable_value
and so on (n times).
I need to read this file and store these three values (comments,name,value) for every variable in array ($arr1 = array ("arr2" => array ("name","value","comments"))).
Any help is welcome. Thank you.