会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
天涯alone
前面是高山,后面是大海
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2016年1月30日
二维数组相同键里的值相加
摘要: <?php header("Content-type: text/html; charset=utf-8"); $_data1=Array ( "0" => Array ( "userid" => 1, "username" => 'admin', "roleid" => '超级管理员', "has
阅读全文
posted @ 2016-01-30 17:16 天涯alone
阅读(1142)
评论(0)
推荐(0)
2016年1月18日
PHP foreach()跳出本次或当前循环与终止循环方法
摘要: PHPforeach()跳出本次或当前循环与终止循环方法PHP中用foreach()循环中,想要在循环的时候,当满足某个条件时,想$arr = array('a','b','c','d','e');$html = '';foreach($arr as $key => $value){ if($...
阅读全文
posted @ 2016-01-18 11:19 天涯alone
阅读(103527)
评论(2)
推荐(2)
phpcms 缓存
摘要: PHPCMS设置和读取缓存文件PHPCMS开发中经常用到读取文件缓存,比如常见的当前站点类别,是保存在缓存文件中的,读取的时候 用:$this->categorys = getcache(‘category_content_’.$this->siteid,’commons’);把常用的一些配置和需要...
阅读全文
posted @ 2016-01-18 11:04 天涯alone
阅读(2733)
评论(1)
推荐(0)
2016年1月11日
企业号微信消息响应
摘要: VerifyURL($sVerifyMsgSig, $sVerifyTimeStamp, $sVerifyNonce, $sVerifyEchoStr, $sEchoStr); if($errCode == 0) { logger("R \r\n"...
阅读全文
posted @ 2016-01-11 13:07 天涯alone
阅读(682)
评论(0)
推荐(0)
2015年12月18日
微信企业号接口调用
摘要: VerifyURL($sVerifyMsgSig, $sVerifyTimeStamp, $sVerifyNonce, $sVerifyEchoStr, $sEchoStr);if ($errCode == 0) { // // 验证URL成功,将sEchoStr返回 print_r($sEchoS...
阅读全文
posted @ 2015-12-18 11:45 天涯alone
阅读(973)
评论(1)
推荐(0)
2015年11月9日
表格写成组件
摘要: 输出样式:
阅读全文
posted @ 2015-11-09 11:46 天涯alone
阅读(236)
评论(0)
推荐(0)
把分类的select写在moden里做成一个组件 高洛峰
摘要: function selectform($name="pid", $pid=0) { $data = $this->field('id, concat(path, "-", id) as abspath, name')->order('abspath, id')->select...
阅读全文
posted @ 2015-11-09 11:41 天涯alone
阅读(184)
评论(0)
推荐(0)
2015年9月11日
URL重写是实现PHP伪静态
摘要: URL重写是实现PHP伪静态应该这样说才是,URL重写是实现PHP伪静态的方式之一,具体如:http://www.plframe.com/?x=1&y=2&z=3换成http://www.plframe.com/1-2-3.html这种伪静态方式访问的话,其他最简单的方法是在网站根目录下面建一个.h...
阅读全文
posted @ 2015-09-11 09:52 天涯alone
阅读(1208)
评论(0)
推荐(0)
2015年9月7日
ecshop 管理员不需要旧密码
摘要: 找到ecshop 后台 privilege.php文件 找到act='update'下面代码
阅读全文
posted @ 2015-09-07 09:04 天涯alone
阅读(200)
评论(0)
推荐(0)
2015年9月2日
一个sql很多个not like的简化语句
摘要: 如:select * from table where `zongbu` not like '%北京%' and `zongbu` notlike '%上海%' and `zongbu` not like '%深圳%' and `zongbu` not like '天津'and `zongbu` n...
阅读全文
posted @ 2015-09-02 16:32 天涯alone
阅读(9735)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告