Thread: copylevel()
View Single Post
  #5  
Old 08-22-2009, 07:25 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by LoneAngelIbesu View Post
Semi-gravedig. But uh.. this seems pretty straightforward to do on your own? Correct me if I'm not understanding something...

PHP Code:
function copyfile(source, output) {
  
temp.contents.loadlines(temp.source);
  
temp.contents.savelines(temp.output, 0);
} 
If you're copying a file like that you'd want to use loadstring() not loadlines(). loadlines() is for text files and stuff, loadstring() loads in a binary format.
__________________
Reply With Quote