php删除 复制文件夹及其文件夹下所有文件
<?php
* xCopy("feiy","feiy2",1):拷贝feiy下的文件到 feiy2,推销员的一天,包括子目录
*参数说明:
* $destination:目的目录名
*/
if (!file_exists($destination))
if (!mkdir(rtrim($destination, '/'), 0777))
 ,有效消除黑眼圈5个妙方DIY; //$err->add($_LANG['cannt_mk_dir']);
}
}
return 0;
if(!is_dir($destination)){
}
while($entry=$handle->read()){
if(is_dir($source."/".$entry)){
xCopy($source."/".$entry,$destination."/".$entry,$child);
else{
}
}
}
* deldidr("feiy"):删除feiy,包括子目录
* $dir:要删除的目录名
function deldir($dir) {
}else{@chmod($dir, 0777);}
while ($file=readdir($dh)) {
$fullpath=$dir."/".$file;
unlink($fullpath);
deldir($fullpath);
}
return true;
 ,女士手机; return false;
}
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/huangguaxuan/archive/2008/08/21/2805769.aspx
相关文档:
<?php
/**
* 把一个汉字转为unicode的通用函数,不依赖任何库,和别的自定义函数,但有条件
* 条件:本文件以及函数的输入参数应该用utf-8编码,不然要加函数转换
* 其实亦可轻易编写反向转换的函数,甚至不局限于汉字,奇怪为什么PHP没有现成函数
* @author xieye
*
* @param {string} $word 必须是一个汉 ......
几天没有更新的blog这两天在写个小东西玩玩
现在是基本能用了
最近没什么事做,就想到了查看服务端目录的小程序玩玩
现在查看已经写完了发上来给大家看看
demo地址
http://www.web-jia.com/demo/folder/demo.html
我分享的代码欢迎大家来下载啊
下载可以到
http://www.web-jia.com/viewthread.php?tid=2832&ext ......
<?php
/**
+++++++++++++++++++++=+++++上传图片++++++++++++++++++++++++++++++++++++++++
—————————————————————————————&mdas ......
基本语法
我的第一个PHP:Hello World
<?php
echo"Hello World!";
?>
显示结果为 Hello World!
变量
PHP中,所有的变量都以标识“$”开头:
<?php
$str1 = "Hello World!";
echo $str1;
?>
显示结果为 Hello World!
PHP中使用“.”符号连接不同的字符串。举例如下:
<?p ......
这里50个有益的PHP工具,可以大大提高你的编程工作:
调试工具
Webgrind
Xdebug
Gubed PHP Debugger
DBG
PHP_Debug
PHP_Dyn
MacGDBp
测试和优化工具
PHPUnit
SimpleTest
Selenium
PHP_CodeSniffer
dBug
PHP Profile Class
文档工具
phpDocumentor
PHP DOX
安全工具
Securimage
:验证码工具。
Scave ......