Thread: PHP Help!
View Single Post
Old 14-03-2005, 11:55   #11
HxBro
Inactive
 
Join Date: Jan 2005
Posts: 5
HxBro is an unknown quantity at this point
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
HxBro is offline   Reply With Quote