Quote:
Originally Posted by killerogue
You're declaring it an object when loadlines returns and array first off. You need to fix that! In short, remove the TStaticVar declaration because it COULD be causing problems.
Secondly, don't use this. static vars use temp. prefixes because they are temporary and are deleted when the function is over. Best for testing as that's seemingly what you're doing.
|
TGraalVar.loadlines() does not return an array Mr. Smartass
PHP Code:
file.loadlines(filename);
if (file.size() < 1) {
return;
}
Line from my TIniFile and it works fine.
Second, TStaticVar would change nothing.
Third, dynamic variables are case-sensitive last time I checked, its usually best not to use capital letters in their names unless you're going to do the same for your whole server or you will get confused.