anolan13 Posted June 26, 2008 Share Posted June 26, 2008 Hello, I'm having a lot of trouble writing a script that simply copies a folder and its contents from one part of the server to another... Whats the best way to go about doing this? any help is greatly appreciated, Thanks, Link to comment https://forums.phpfreaks.com/topic/112079-copy-folder-and-contents/ Share on other sites More sharing options...
Jabop Posted June 26, 2008 Share Posted June 26, 2008 Depends on what system your server is running on. You could use http://us3.php.net/copy You could also use shell_exec(); Link to comment https://forums.phpfreaks.com/topic/112079-copy-folder-and-contents/#findComment-575331 Share on other sites More sharing options...
rhodesa Posted June 26, 2008 Share Posted June 26, 2008 there are lot's of examples in the comments on the PHP doc for copy() here is an example: http://us2.php.net/manual/en/function.copy.php#68383 Link to comment https://forums.phpfreaks.com/topic/112079-copy-folder-and-contents/#findComment-575334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.