You should learn more about NPC-Server. It needs rights to access/write to files on the server. I currently have:
PHP Code:
rw mudlib/*
rw mudlib/*/*
Although it will soon be r only. Basically, before you can load files into your scripts: you need to give NPC-Server rights to the files you wish it to access.