Jump to content

Archived

This topic is now archived and is closed to further replies.

VTS

Need help with the copy() function

Recommended Posts

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

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
Thanks for the quick response SemiApocalyptic!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.