摘要: <?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 阅读(1122) 评论(0) 推荐(0) 编辑
摘要: PHPforeach()跳出本次或当前循环与终止循环方法PHP中用foreach()循环中,想要在循环的时候,当满足某个条件时,想$arr = array('a','b','c','d','e');$html = '';foreach($arr as $key => $value){ if($... 阅读全文
posted @ 2016-01-18 11:19 天涯alone 阅读(103163) 评论(2) 推荐(2) 编辑
摘要: PHPCMS设置和读取缓存文件PHPCMS开发中经常用到读取文件缓存,比如常见的当前站点类别,是保存在缓存文件中的,读取的时候 用:$this->categorys = getcache(‘category_content_’.$this->siteid,’commons’);把常用的一些配置和需要... 阅读全文
posted @ 2016-01-18 11:04 天涯alone 阅读(2691) 评论(1) 推荐(0) 编辑
摘要: VerifyURL($sVerifyMsgSig, $sVerifyTimeStamp, $sVerifyNonce, $sVerifyEchoStr, $sEchoStr); if($errCode == 0) { logger("R \r\n"... 阅读全文
posted @ 2016-01-11 13:07 天涯alone 阅读(639) 评论(0) 推荐(0) 编辑
摘要: VerifyURL($sVerifyMsgSig, $sVerifyTimeStamp, $sVerifyNonce, $sVerifyEchoStr, $sEchoStr);if ($errCode == 0) { // // 验证URL成功,将sEchoStr返回 print_r($sEchoS... 阅读全文
posted @ 2015-12-18 11:45 天涯alone 阅读(954) 评论(1) 推荐(0) 编辑
摘要: 输出样式: 阅读全文
posted @ 2015-11-09 11:46 天涯alone 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1139) 评论(0) 推荐(0) 编辑
摘要: 找到ecshop 后台 privilege.php文件 找到act='update'下面代码 阅读全文
posted @ 2015-09-07 09:04 天涯alone 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 如: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 阅读(9565) 评论(0) 推荐(0) 编辑