I need to copy some directories with PHP, so I did a few searches and found a few scripts to try, considering that there is no built in method in PHP. I ran one of them and got an error about the maximum running time of the script being exceeding. Thinking this was because some of the files were too big, I increased that time. Little did I know, the script was recursively copying the directory and then copying it inside itself… I’m still in the process of deleting everything it made…
Anyway, I was hoping someone on here would have a reliable script they’ve written or know about for this type of thing.
edit: hadn’t occurred to me that copying a directory to inside itself wasn’t a good idea. Sorry whoever wrote the code I just trashed.
You can use: