The filename argument to parse_ini_file is the default php file name, so the same rules will apply when opening a file with fopen .
You must specify the absolute path to the file ("/path/to/my.ini") or the path relative to your current working directory ("my.ini"). See getcwd for the current working directory.
fopen , ( "my.ini" ), parse_ini_file . php 5.2.6.