file upload +path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

file upload +path

Post 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
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

You may want to look at move_uploaded_file().
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

Post by Jim_Bo »

Hi,

Thanks, I got it. Was a variable issue.
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

Cool. Darn them pesky variables.
Post Reply