Thread: file handling
View Single Post
  #1  
Old 05-22-2007, 01:25 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
file handling

There's something that's really getting on my nerves right now.. that's not being able to load/save certain file types.

Let me demonstrate..

PHP Code:
temp.file.loadVars("levels/mudlib/shopdb/fredshop.arc");
echo(
temp.file.item.getDynamicVarNames()); 
This works perfectly, but, if I rename the file to fredshop.gupd, and change the npcserver rights, this wont work:


PHP Code:
temp.file.loadVars("levels/mudlib/shopdb/fredshop.gupd");
echo(
temp.file.item.getDynamicVarNames()); 

Same thing with a lot of filetypes. This could be really handy, at least since I'm trying to script something that scans entire folders and turn it into a .gupd file.

So, Stefan, can you enable all filetypes for the following commands? I mean, now when you can change rights of the npcserver, that shouldn't be a security issue any more - should it? :/

loadlines(str)
loadstring(str)
loadvars(str)
savelines(str, int)
savestring(str, int)
savevars(str, int)
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote