会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
globalfy
博客园
首页
新随笔
联系
订阅
管理
2017年12月1日
点击文字使得对应的按钮为选中状态
摘要: <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)
2017年11月30日
前端对input file 进行base64进行加密
摘要: <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
阅读(735)
评论(0)
推荐(0)
2017年11月27日
php文件下载
摘要: download(basename($files),$files);//文件路径function download($fileName,$file){ header("Content-type:application/octet-stream"); header("Content-Dispositi
阅读全文
posted @ 2017-11-27 23:17 globalfy
阅读(154)
评论(0)
推荐(0)
2017年11月26日
php 复制文件
摘要: //复制目录// 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
阅读(465)
评论(0)
推荐(0)
php 递归删除目录
摘要: //删除目录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
阅读(141)
评论(0)
推荐(0)
php 递归创建目录
摘要: <?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
阅读(144)
评论(0)
推荐(0)
2017年11月25日
php 计算距离天的时间还有多少天
摘要: $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
阅读(3096)
评论(0)
推荐(0)
2017年9月25日
关于一个醉醉最简单的问题 array_column方法
摘要: aray_column 在PHP>5.5才能使用 否则会服务器报错500
阅读全文
posted @ 2017-09-25 22:23 globalfy
阅读(234)
评论(0)
推荐(0)
2017年9月23日
关于百度编辑器上传数据问题
摘要: 在页面中原样输出,页面中带有原样的html 将PHP代码中先进行处理一下数据就好了 htmlspecialchars_decode(str)
阅读全文
posted @ 2017-09-23 09:36 globalfy
阅读(170)
评论(0)
推荐(0)
公告