Jump to content


PHP code to copy file from subfolder to root?

  • Please log in to reply
No replies to this topic

#1 Dhira

  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 15 April 2006 - 11:29 AM


Say I have a file in a folder;

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]www.domain.com/includes/file.txt[/quote]

and I want to move it to

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]www.domain.com/file.txt (i.e.move it to public_html)
What code do I need to do this? (That will enable it replace a file of the same name if there is one)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users