Quote:
Originally Posted by Deadly_Killer
You may need to give the npc-server read rights to the file.
Anyway, here is a function which uses loadlines to check if a file exists.
PHP Code:
function fileexists2(file) {
temp.file.loadlines(file);
if (temp.file.length() > 0) {
return true;
}
return false;
}
|
Ahh that's not true though because the file can still have 0 bytes and exist but your function would return false! It is better to do:
temp.file.size() > 0