I have the following INI file (stolen from php.net/parse_ini_file).
[first_section]
one=1
five=5
animal=BIRD
[second_section]
path=/usr/local/bin
URL="http://www.example.com/~username"
(that is called test.ini). I also have a PHP file that reads it. Using, once again, the code stolen from their site:
<?
$ini_array = parse_ini_file("test.ini", true);
?>
BUT! I want it to print one "variable" or control from the ini file. So, I simply put
<?
$ini_array = parse_ini_file("test.ini", true);
echo $ini_array['one'];
?>
In the hope it would print "1" as the ini file says... Instead, i get the error:
Notice: Undefined index: one in path\testing\index.php on line 3