Thread: fileexists
View Single Post
  #5  
Old 04-30-2007, 09:03 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
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;

__________________
- Zidane / Zidaya
Reply With Quote