|
Re: PHP Help!
couple of things, fileid won't be random enough, i use :
$server_filename = md5(microtime() . $_FILES['upfile']['name']) . $extension;
for random filenames
2nd, is the directory /var/www/htdocs/prin/u1r08/wap/uploaded/ actually there and read/writeable by the user the webserver runs as
3rd, try using move_uploaded_file($_FILES['upfile']['tmp_name'][$idx], $dst)
instead of the copy
|