Page 1 of 1

file upload +path

Posted: Wed Feb 28, 2007 2:26 pm
by Jim_Bo
Hi,

I have a multiple file uplaod script. I am trying to have files uploaded out of the public_html folder. When I use:

Code: Select all

copy($files_uploaded['tmp_name'][$counter], uploads."/".$filename);
it works fine. When I set the path as:

Code: Select all

copy($files_uploaded['tmp_name'][$counter], "/hsphere/local/home/the1sty/uploads/".$filename);
It uploads the file as Array. If I rename that to Array.zip the file is intact.

How should it be formated?


Thanks

Posted: Wed Feb 28, 2007 3:10 pm
by Nathaniel
You may want to look at move_uploaded_file().

Posted: Wed Feb 28, 2007 3:22 pm
by Jim_Bo
Hi,

Thanks, I got it. Was a variable issue.

Posted: Wed Feb 28, 2007 3:26 pm
by Nathaniel
Cool. Darn them pesky variables.