Alright so I've read around for a little while and so far the best solution I've found so far is: How to read and write to an ini file with PHP
I've installed the pear package. included the required file initiated the class. as shown at: https://github.com/pear/Config_Lite/blob/master/docs/examples
However i am having troubles getting the variable.
this is my ini file:
[Account]
acct1.UserName = something1
acct1.Password = something2
acct1.Signature = something3
acct1.AppId = something4
# Subject is optional and is required only in case of third party authorization
acct1.Subject =
This is what i tried so far:
$config = new Config_Lite('$filename');
echo $config->get('Account', 'acct1.UserName');
It did not work and returned an error.
Thanks in advanced.