UPDATE: Typical, as soon as a posted this message I solved it. For some reason php doesnt like my on=1. I changed this to status=on and all is good.
I have a ini file called settings.ini it contains the following:
[system]
on=1
The idea is that I update this ini file to turn the application on or off, 1 being on.
When I use parse_ini_file("settings.ini") I receive this error
The PHP calling this is:
$ini = parse_ini_file("settings.ini");
What is wrong with this and is using a ini file the way to go. I thought its a bit much having it in a database its just a flag to tell the application if the system can run or not.
Any help appreciated.
I just cant see what the issue is.