摘要:
<input type="radio" id="rdfeeling_4" value="4" name="rdgqzt" <if condition="$user['feeling'] eq '4'">checked</if>> <label class="rdgspan" for="rdfeeli 阅读全文
摘要:
<form action="javascript:;" method="post" id="commentform" enctype="application/x-www-form-urlencoded">注意这个属性才能发送文件 <input type="file" name="uploadA" 阅读全文
摘要:
download(basename($files),$files);//文件路径function download($fileName,$file){ header("Content-type:application/octet-stream"); header("Content-Dispositi 阅读全文
摘要:
//复制目录// copy('1.php','1.bak.php');//目录复制的思路分析//a) 创建目录b//b) 将a目录的文件移动到b目录/** * 目录复制 * @param string $resDir 源目录 * @param string $desDir 目标目录 */functi 阅读全文
摘要:
//删除目录function delDir($path){ //glob 是遍历目录中的成员,返回数组 foreach(glob($path.'/*') as $f){ is_dir($f)?delDir($f):unlink($f); } //删除目录 rmdir($path);}delDir(' 阅读全文
摘要:
<?php//创建目录,递归算法function mkdir_r($path){ //如果 if(strstr($path,'/')){ mkdir_r(dirname($path)); } is_dir($path) or mkdir($path);} mkdir_r('b/b/b'); 阅读全文
摘要:
$syday = 0; $month = (date("m-d",$value['ctime'])); $year = (date("Y",time())); $end_date = (date("Y",time()))."-".$month; if(time()>$value['ctime']) 阅读全文
摘要:
aray_column 在PHP>5.5才能使用 否则会服务器报错500 阅读全文
摘要:
在页面中原样输出,页面中带有原样的html 将PHP代码中先进行处理一下数据就好了 htmlspecialchars_decode(str) 阅读全文