The following regards: PHP5 and Apache2
I cannot figure the proper scripting however as is it does not generate an error, just plain does nothing!
<?php
//error_reporting (E_ALL);
$dirsource="../tpl_for_dupli/calendar";
$dirdest="../chamber_members/calendar";
function COPY_RECURSIVE_DIRS($dirsource, $dirdest)
{
if(is_dir($dirsource))$dir_handle=opendir($dirsource);
mkdir($dirdest."/".$dirsource, 0750);
while($file=readdir($dir_handle))
{
if($file!="." && $file!="..")
{
if(!is_dir($dirsource."/".$file)) copy ($dirsource."/".$file, $dirdest."/".$dirsource."/".$file);
else COPY_RECURSIVE_DIRS($dirsource."/".$file, $dirdest);
}
}
closedir($dir_handle); return true;
}
thank you
I cannot figure the proper scripting however as is it does not generate an error, just plain does nothing!
<?php
//error_reporting (E_ALL);
$dirsource="../tpl_for_dupli/calendar";
$dirdest="../chamber_members/calendar";
function COPY_RECURSIVE_DIRS($dirsource, $dirdest)
{
if(is_dir($dirsource))$dir_handle=opendir($dirsource);
mkdir($dirdest."/".$dirsource, 0750);
while($file=readdir($dir_handle))
{
if($file!="." && $file!="..")
{
if(!is_dir($dirsource."/".$file)) copy ($dirsource."/".$file, $dirdest."/".$dirsource."/".$file);
else COPY_RECURSIVE_DIRS($dirsource."/".$file, $dirdest);
}
}
closedir($dir_handle); return true;
}
thank you