Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving a file to another directory

Status
Not open for further replies.

justride

Programmer
Jan 9, 2004
251
US
is there a function to move an uploaded file, i have the path, to another directory on the server?

move_uploaded_file() doesnt appear to do the trick unless im doing it wrong.

thanks
 
yes, i tried that with the url of the file in one argument amd the destination url in the other, i didnt see the file move and the folders are writable.
 
URL of the file"?

I don't understand. You asked about uploaded files, which would have already been sent from and HTML form and would already be on the server's filesystem. A URL would not come into play here. Did you read the section of the PHP online manual titled, "Handling File Uploads"? I provided a link.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top