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
Ïà¹ØÎĵµ£º
¼¸ÌìûÓиüеÄblogÕâÁ½ÌìÔÚд¸öС¶«Î÷ÍæÍæ
ÏÖÔÚÊÇ»ù±¾ÄÜÓÃÁË
×î½üûʲôÊÂ×ö£¬¾ÍÏëµ½Á˲鿴·þÎñ¶ËĿ¼µÄС³ÌÐòÍæÍæ
ÏÖÔڲ鿴ÒѾдÍêÁË·¢ÉÏÀ´¸ø´ó¼Ò¿´¿´
demoµØÖ·
http://www.web-jia.com/demo/folder/demo.html
ÎÒ·ÖÏíµÄ´úÂë»¶Ó´ó¼ÒÀ´ÏÂÔØ°¡
ÏÂÔØ¿ÉÒÔµ½
http://www.web-jia.com/viewthread.php?tid=2832&ext ......
Èç¹ûÄúÉÐδ´òËãÓà OO ÔÔò´´½¨Ó¦ÓóÌÐò£¬ÔòʹÓà PHP µÄÃæÏò¶ÔÏó£¨OO£©µÄÓïÑÔÌØÐÔ£¬Õâ 7 ¸öϰ¹ß½«°ïÖúÄú¿ªÊ¼ÔÚ¹ý³Ì±à³ÌÓë OO ±à³ÌÖ®¼ä½øÐÐת»»¡£
ÔÚ PHP ±à³ÌÔçÆÚ£¬PHP ´úÂëÔÚ±¾ÖÊÉÏÊÇÏÞÓÚÃæÏò¹ý³ÌµÄ¡£¹ý³Ì´úÂë µÄÌØÕ÷ÔÚÓÚʹÓùý³Ì¹¹½¨Ó¦ÓóÌÐò¿é¡£¹ý³Ìͨ¹ýÔÊÐí¹ý³ÌÖ®¼äµÄµ÷ÓÃÌṩijÖ̶ֳȵÄÖØÓá£
µ«ÊÇ£¬Ã»ÓÐÃæÏò¶ÔÏóµÄÓï ......
´úÂëÈçÏÂ:
<?php
/* ÍøÕ¾ÑéÖ¤Âë³ÌÐò
* ÔËÐл·¾³£º PHP5.0.18 ϵ÷ÊÔͨ¹ý
* ÐèÒª gd2 ͼÐοâÖ§³Ö£¨PHP.INIÖÐ php_gd2.dll¿ªÆ ......
·½·¨1£ºerror_reporting (E_ALL ^ E_WARNING);
session_start();
·½·¨2£ºerror_reporting (E_ALL & ~E_NOTICE);
if (!isset($_SESSION)) {
session_start();
};
·½·¨3£º¸Äphp.ini ÖÐerror_reporting ......
´úÂëinterface StringSearchable
{
public function search($substring, $buffer);
}
class BoyerMooreStringSearch implements StringSearchable
{
public $substring = null;
public ......