upload files
Posted: Mon Feb 14, 2005 4:12 pm
i have a section that uploads a file, but i want the file name to be changed when it is uploaded. here is what im using
Code: Select all
if (move_uploaded_file($_FILESї'thefile']ї'tmp_name'], "avatars/{$_FILESї'thefile']ї'name']}")){
echo 'ok good';
}else
echo 'Could Not Be Uploaded';