GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   copying directories in PHP (https://gfy.com/showthread.php?t=99220)

psyko514 01-11-2003 01:08 PM

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

TFCash 01-11-2003 01:13 PM

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

psyko514 01-11-2003 01:17 PM

that's my problem... it doesn't give me any errors... it just doesn't do it!

psyko514 01-11-2003 01:25 PM

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:

SAFE MODE Restriction in effect. The script whose uid is 10009 is not allowed to access /usr/local/psa/home/vhosts/xxxxxxxx.com/httpdocs/ngnd/girls/temp/gal_1 owned by uid 48 in /usr/local/psa/home/vhosts/xxxxxxxx.com/httpdocs/ngnd/girls/preview_gal.php on line 46
line 46:
PHP Code:

copy($from_path."/".$file$to_path."/".$file); 


psyko514 01-11-2003 02:45 PM

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