You haven't declared $pFile in your sample, but apart from that, if I don't do this here it doesn't die with too many parameters error..

If I create an ini file with some sections and point $pFile to it your line 4 perfectly creates an array with the section names. The rest of your functions look perfectly allright, except maybe that $pOpc wasn't set anywhere ;\)

I guess this is only part of a bigger script, right?
_________________________