Jump to content


Photo

Need help with the copy() function


  • Please log in to reply
2 replies to this topic

#1 VTS

VTS
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts
  • LocationTennessee

Posted 21 June 2006 - 07:24 PM

I looked on php.net at the manual but I didnt find the answer to my question. I was wondering how
I would go about copying a file from something like "c:\php stuff\php documents" to another destination.

Obviously, you input the source and destination in the function but I am wondering about the spaces in the
directory. Will it handle it the same as it would "c:\php_stuff\php_documents"? Any help would be greatly
appreciated

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 21 June 2006 - 07:40 PM

I think as long as the directory is enclosed with quotes you should be fine, which it needs them anyway or you'll probably get a syntax error...

#3 VTS

VTS
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts
  • LocationTennessee

Posted 21 June 2006 - 07:44 PM

Thanks for the quick response SemiApocalyptic!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users