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