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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use move_uploaded_file twice 1

Status
Not open for further replies.

jackrabbit12

Programmer
May 20, 2007
2
US
Hi All,

I was wondering if any of you all have problems using move_uploaded_file twice with the same uploaded file?

What I have is a simple file upload, but, if a certain variable is present then I need to upload the file to two places, is this possible?

Thanks,
Matt
 
no. move_uploaded_file() does what it says on the box.

but there is nothing to stop you from copying the file. use m_u_l to get it to where you want it and then copy the file from there to elsewhere (otherwise permissions [seem to] go wonky).
 
Thank you! I completely forgot about copy. I thought I was going to have to use the filesystem object.

Thanks again,
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top