摘要: 01父类抽象类 abstract.php <?phpabstract class controller_abstract{ protected $app; function __construct(& $app){ $this->app = $app;} public function exec() 阅读全文
posted @ 2016-03-22 16:03 小庄啊 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 访问: www.test.com/admin 1 后台目录:admin (确保单一入口) --有入口文件index.php <?phprequire '../A/a.php'; //导入主程序function mylog2($word){$file = './mylog2.txt';file_put 阅读全文
posted @ 2016-03-22 15:51 小庄啊 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 进入编辑php文件vim index.php(无则新建) -->进入命令行模式--输入a(append)-->进入编辑模式-->编辑好-->esc退出编辑模式-->:q!冒号强制退出不保存-->:w 保存不退出.看效果-->:wq!写入保存退出 清空mylog1.txt 01 shift+G 转到文 阅读全文
posted @ 2016-03-22 11:00 小庄啊 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 查找目录文件 whereis xxx 编辑文件,并且查找指定代码的位置 01 vi appcontroller.class.php 02 :分号进入命令行模式, /斜杠 查找 status 回车 n下一个单词 ls -a list all 查看所有文件(包括隐藏文件 如.bash)pwd 当前位置 阅读全文
posted @ 2016-03-22 07:36 小庄啊 阅读(155) 评论(0) 推荐(0) 编辑
摘要: object顶级类class object 第一级抽象类controllerabstract class controller extends object 第二级抽象类controller_abstract 继承controller 祖父类 abstract class controller_ab 阅读全文
posted @ 2016-03-18 17:52 小庄啊 阅读(290) 评论(0) 推荐(0) 编辑
摘要: asdf 阅读全文
posted @ 2016-03-18 15:39 小庄啊 阅读(115) 评论(0) 推荐(0) 编辑
摘要: across.php文件在域名www.cms.com程序中 <html><body><div id="pv">99</div><script type="text/javascript" src='/img/js/jquery-1.6.2.min.js';></script> <!-- 引入jque 阅读全文
posted @ 2016-03-16 15:08 小庄啊 阅读(751) 评论(0) 推荐(0) 编辑
摘要: cmd下 ping www.岛国大片.com 查处ip地址 , 复制ip地址。百度(数据库中)搜索--锁定网站地址 因为每个地区都分配特定的ip地址 阅读全文
posted @ 2016-03-16 00:14 小庄啊 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 微信付款后 接收微信post提交过来的反馈结果 接收微信post过来的数据 使用接收$GLOBALS['HTTP_RAW_POST_DATA'] 可以接收 text/xml 或者 soap 类型数据 接收微信post过来的数据php://input 内存压力小 $_POST 不能接收xml格式只能接 阅读全文
posted @ 2016-03-15 10:09 小庄啊 阅读(688) 评论(0) 推荐(0) 编辑
摘要: //随便放置一个php文件在服务器上.执行该方法--调用模拟get提交 到微信-->获得微信返回的access_token 不建议自己编写模拟get提交方法. 建议直接导入微信框架LaneWeChat 中的curl.lib.php文件 01 直接使用lanewechat框架中的模拟get提交 get 阅读全文
posted @ 2016-03-15 10:05 小庄啊 阅读(606) 评论(0) 推荐(0) 编辑