Code Not working.
Posted: Tue Jan 26, 2016 8:36 am
I have a .php file that contains some static functions. It's loaded with a require_once() statement. I added a function, and now the code hangs. If I comment out the new function, it works. Here is the function:
I'm not even calling this function yet.
Thanks.
Code: Select all
static function GetDataLibs($iniFile) {
$myINIFile = Fopen($iniFile, "r");
$dataLibs = [];
$idx = -1;
while (!feof($myINIFile)) {
$line = fgets($myINIFile);
if (substr($line, 0, 7) == "library") {
$dataLibs(++$idx) = substr($line, strpos($line, "=") + 1, 10);
}
}
fclose($myINIFile);
return $dataLibs;
}Thanks.