![]() |
copying directories in PHP
i want to copy an entire directory and it's subdirectories with all it's files into a new, randomly-named directory
can someone point me towards a good PHP function? i've seen the rec_copy function, but it doesn't seem to work for me. and my server won't allow me to run shell commands, so cp -r doesn't work either |
What error does it give you when you try rec_copy ?? That function works fine for me, so maybe you host has shut off some php commands that are going to be needed to do what you want to achieve.
Tim :Graucho |
that's my problem... it doesn't give me any errors... it just doesn't do it!
|
ok, i messed around a bit, and I got it to copy the directory structure, but it won't copy the files
it gives me this error: Quote:
PHP Code:
|
i guess i should just keep tweaking the rec_copy function?
|
All times are GMT -7. The time now is 07:21 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123