[thelist] PHP file upload tip

Chris axe at suburbia.com.au
Tue May 7 10:12:01 CDT 2002


Here is a little tip I stumbled on after a bit of experimentation with meo.

<tip type="PHP File Uploads" author="Chris">
If you are using file uploads (especially on meo), I recommend using this
little code snippet for getting the uploaded file where you want it.

if ( move_uploaded_file($filename,$destination) ) {
     echo "Success";
} else {
     echo "Failure";
}

Where $filename is the temporary name of the uploaded file and
$destination is where you would like the file.
</tip>

--------
Chris




More information about the thelist mailing list