PHP如何复制文件夹下的某些目录
function copy_module_file($path,$newp){<br /> if(!is_dir($newp)){<br /> mkdir($newp);<br /> }<br /> if (file_exists($path)){<br /> if(is_file($path)){<br /> copy($path,$newp);<br /> } else{<br /> $handle = opendir($path);<br /> while (($file = readdir($handle))!='') {<br /> if (($file!=".") && ($file!="..") && ($file!="")){<br /> if (is_dir("$path/$file")){<br /> copy_module_file("$path/$file","$newp/$file");<br /> } else{<br /> copy("$path/$file","$newp/$file");<br /> }<br /> }<br /> }<br /> closedir($handle);<br /> }<br /> }<br /> }