2018年7月3日

php中const与static的区别与使用(转)

摘要: 首先关于const 在php的类内部只可以修饰成员属性,不可以修饰方法,如下: class Test{ class Test{ const PATH = 'c/';//修饰常量 const PATH = 'c/';//修饰常量 const function test(){//这种方法是错误的,con 阅读全文

posted @ 2018-07-03 16:56 Alex_guoyihao 阅读(150) 评论(0) 推荐(0) 编辑

超简单开发自己的php框架一点都不难

摘要: (转)https://blog.csdn.net/qq_33862644/article/details/79344331 写框架的极简思路: 接收,打印参数想怎么弄。如 获取配置文件的方法,根据传过来的参数 构想 1、一般都是先判断文件是否存在。存在就该include就include,该new就n 阅读全文

posted @ 2018-07-03 16:23 Alex_guoyihao 阅读(1764) 评论(0) 推荐(0) 编辑

.htaccess技巧: URL重写(Rewrite)与重定向

摘要: (转)https://www.cnblogs.com/wang1204/p/6392602.html URL重定向是.htaccess的重头戏,它可以将长地址转为短地址、将动态地址转为静态地址、重定向丢失的页面、防止盗链、实现自动语言转换等。笔者觉得难点是在正则表达式的运用和理解上。有关htacce 阅读全文

posted @ 2018-07-03 16:21 Alex_guoyihao 阅读(385) 评论(0) 推荐(0) 编辑

htaccess附录:正则表达式、重定向代码

摘要: (转)https://lesca.me/archives/htaccess-appendix.html HTTP协议重定向编码 301 – Moved Permanently 302 – Moved Temporarily 403 – Forbidden 404 – Not Found 410 – 阅读全文

posted @ 2018-07-03 16:13 Alex_guoyihao 阅读(139) 评论(0) 推荐(0) 编辑

编写自己的PHP MVC框架笔记

摘要: (转)https://www.cnblogs.com/Steven-shi/p/5914175.html (转)https://blog.csdn.net/qq_33862644/article/details/79344331 1、MVC MVC模式(Model-View-Controller)是 阅读全文

posted @ 2018-07-03 15:56 Alex_guoyihao 阅读(311) 评论(0) 推荐(0) 编辑

微信企业号-上传、获取临时素材文件

摘要: (转 https://www.cnblogs.com/phonecom/p/08859d91a2dac3c409f5859dcb36cb48.html) 上传、获取临时素材文件,媒体文件类型有图片(image)、语音(voice)、视频(video),普通文件(file) ,这里以上传、下载图片为例 阅读全文

posted @ 2018-07-03 15:49 Alex_guoyihao 阅读(2024) 评论(0) 推荐(0) 编辑

导航