摘要: 解析好的静态页面.shtml浏览器无法解析.需要apache解析后再返回给浏览器 让Apache支持SHTML(SSI)的配置方法 http.conf放开addtype text/html .shtmladdoutputfileter includes .shtml 再搜索Options Index 阅读全文
posted @ 2016-04-06 16:29 小庄啊 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 01开发者--基本配置--url服务器地址 填写好--需要开通微信接口的域名 http://www.cctv.com/xxx.php文件 xxx.php文件 01参考wx_sample.php 02写上设置的token-->存入微信库中 02提交这个配置的 触发微信 获取到这个域名http://ww 阅读全文
posted @ 2016-03-30 17:33 小庄啊 阅读(185) 评论(0) 推荐(0) 编辑
摘要: view.php01默认设置有3个公共的属性,其他属性.后面实例化的时候.通过传递参数.foreach遍历,不断的增加属性02view对象的实例化.位置在-->控制器父类的构造方法中视图的目录名 $dir, 视图的文件名 $file,后缀名:默认 $ext = '.php'; 工厂类,实例化view 阅读全文
posted @ 2016-03-28 14:56 小庄啊 阅读(297) 评论(0) 推荐(0) 编辑
摘要: <?phpdefine('DS','/');define('A_PATH',str_replace('\\','/',dirname(__FILE__)).DS); //01获取到主程序目录class a {public $app,$controller,$action,$class,$client 阅读全文
posted @ 2016-03-25 16:23 小庄啊 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 短信验证码 2分钟后失效 echo(strtotime("+2 minutes")); 把里面的字符串--转换成时间戳 把date()格式的字符串,转换成时间戳后.才能进行加减处理$yesterday = '2016-2-16 12:10:10';//把这个字符串--转换成时间戳指定时间的2分钟后s 阅读全文
posted @ 2016-03-25 10:39 小庄啊 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 01 framework.php 中 获取请求的ip地址.保存为常量 define('IP', request::get_clientip()); 02 setting表中.属于system模块,保存有ipbanned属性.对于的value是具体ip cmstop.php 主程序执行前 _befor 阅读全文
posted @ 2016-03-24 14:49 小庄啊 阅读(714) 评论(0) 推荐(0) 编辑
摘要: @mkdir()-->file_put_contents-->$data = "<?php\nreturn ".var_export($setting, true).';' --> $settings[$app] = include($path); 加true,赋值给新变量,不输出, $data = 阅读全文
posted @ 2016-03-24 07:11 小庄啊 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 01准备下载好memcached.exe文件-->放置c:\memcached目录中02准备下载好php_memcache.dll文件-->放置php\ext扩展目录中03配置 php.ini引入memcache扩招extension=php_memcache.dll 04启动memcached 每 阅读全文
posted @ 2016-03-24 07:11 小庄啊 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 主程序cmstop类,实例化controller_admin_content类(接收请求后拼接的).传递cmstop所有属性过去.controller_admin_content.构造方法中接收到名称为cmstop,已经内容为cmstop所有属性 class cmstop extends objec 阅读全文
posted @ 2016-03-23 15:00 小庄啊 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 先导入 超级父类 如object.php controller.php 框架文件中 后导入 当前请求的controller的抽象父类(controller_abstract) 最后 导入当前controller http://www.acms.com/admin/?app=system&contro 阅读全文
posted @ 2016-03-23 14:02 小庄啊 阅读(431) 评论(0) 推荐(0) 编辑