[snip]
Correct. The error I'm getting it's because the ini file is not properly
formed.
But I want to catch somehow this error and tell the user that he made a
mistake in the ini file.
I'm not edititng that file programmatically, I just want the user who
made
that mistake to see a more frendly error message.
Any ideas on how to do that?
[/snip]
This is not tested, but I suppose you could use "or die()"
parse_ini_file("foo.ini") or die ("The configuration file has an
error\n");
or an if statement
if(!(parse_ini_file("foo.ini"))){
echo "The configuration file has an error\n";
}
HTH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php