Quote:
Originally Posted by LoneAngelIbesu
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.