Page 1 of 1

Upload script help

Posted: Sun Aug 03, 2003 12:47 am
by Gappa
Warning: copy() has been disabled for security reasons in /data/hosted/Gappa/dor/upload.php on line 6

Code: Select all

<? 
        if ($file == "none") { 
            print "You must specify a file to upload"; 
        } 
        else { 
        copy($file, "/files/$file_name"); 
        unlink($file); 
        } 
    ?>
any other way of doing this?? can't use copy...

Posted: Sun Aug 03, 2003 3:46 am
by pootergeist
other functions with the same ability are

move_uploaded_file
rename
or an fopen-fread-fopen-fwrite set.