Jump to content


Photo

PHP code to copy file from subfolder to root?


  • Please log in to reply
No replies to this topic

#1 Dhira

Dhira
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 15 April 2006 - 11:29 AM

Hi,

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)
[/quote]
What code do I need to do this? (That will enable it replace a file of the same name if there is one)

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users