this is my code:
$uploaddir = '/temp/';
$uploadfile = $uploaddir.basename($_FILES['file']['name']);
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
send_OK();
else
send_error("ERROR - uploading file");
I tried to download from ftp_fput, ftp_put, move_uploaded_file, rename, copy and all that I can put in my hands. nothing works.
I cannot understand what the problem is, because move_uploaded_file returns only true or false and there is no error code.
help??
source
share