Thanks Jon,
I saw the function part and . . . well expected it to . . you know. .
function! (didnt quite understand your answer) so went to the php manual and
used - call_user_func(rec_copy($from_path, $to_path)); - after the last
event handler but it went in a loop and would not copy the directory
contents but it did made plenty directories so I decided to remove the
function part.
After many file doesnt exist and other errors it finally doesnt spit errors
but still will not copy the contents of my dir called test.
I know not what I am doing but that has never stopped me.

<?php
$from_path = ("$from");
$to_path = ("$to");
//$rec_copy =($from_path . $to_path);
{
mkdir($to_path, 0777);
$from_path = getcwd();
if (is_dir($from_path)) {
chdir($from_path);
$handle=opendir("$to_path");
while (($file = readdir($handle))!==false) {
if (($file != ".") && ($file != ".."))
{
if (is_dir($file))
{
copy ("\\".$from."\\".$file."\\", $to."\\".$file."\\");
chdir($from);
}
if (is_file($file))
{
copy("\\".$from."\\".$file, "\\".$to."\\".$file);
}
}
}
closedir($handle);
}
}
?>

To blindly go where no others have gone before.

Thanks for this great list.
Regards
Loren Wolsiffer


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to