【文件属性】:
文件名称:php目录拷贝实现方法
文件大小:28KB
文件格式:PDF
更新时间:2020-12-19 03:39:43
hp php 拷贝
本文实例讲述了php目录拷贝实现方法。分享给大家供大家参考。具体如下:
function copy_dir($src,$dst) {
$dir = opendir($src);
@mkdir($dst);
while(false !== ( $file = readdir($dir)) ) {
if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src . '/' . $file) ) {
copy_dir($src . '/' . $file,$dst . '/' . $file