摘要: 远程登录却报错Host is not allowed to connect to this mysql server: 解决方法: 执行FLUSH PRIVILEGES; 经过上面4步,就可以解决这个问题了。 注: 第四步是刷新MySQL的权限相关表,一定不要忘了,我第一次的时候没有执行第四步,结果 阅读全文
posted @ 2017-09-01 11:08 newAdmin 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在正则表达式的实际应用中,我们经常需要将匹配出的模式进行命名,以命名的键值对形式放在数组中,常见的应用如:MVC模式中的路由。 命名子模式的语法:(?P<name>pattern) 和 (?’name’pattern) 两种方式 如: Array( [page] => user-account [a 阅读全文
posted @ 2017-08-02 11:40 newAdmin 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 在PHP中有一些预定义的类,比如迭代器类,有SPL提供。常用的几个类: Iterator 举例: 0 hello 1 world 0 hello 1 world RecursiveIterator 举例: Depath:0 Key:0 Value:hello Depath:1 Key:0 Value 阅读全文
posted @ 2017-07-31 00:23 newAdmin 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 在没有域名的情况下,怎样才能创建出多站点访问?这个问题困扰我许久,之后阅读了《http权威指南》,这本让我恍然大悟。这里说明了从浏览器如何解析域名,再请求服务器,服务器收到请求后是如何处理请求,在有多个站点是,他又是如何选择的。先简要说说整个处理过程: 1、浏览器在输入一个域名回车后,它会先解析域名 阅读全文
posted @ 2017-07-14 12:20 newAdmin 阅读(4222) 评论(0) 推荐(0) 编辑
摘要: 效果图: 代码: 阅读全文
posted @ 2017-06-02 22:44 newAdmin 阅读(2295) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-06-02 17:36 newAdmin 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-06-02 13:46 newAdmin 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 效果图: 阅读全文
posted @ 2017-06-02 12:11 newAdmin 阅读(3268) 评论(0) 推荐(0) 编辑
摘要: 效果图: 阅读全文
posted @ 2017-06-02 09:14 newAdmin 阅读(3065) 评论(0) 推荐(0) 编辑
摘要: 结果图: 代码如下: 阅读全文
posted @ 2017-06-01 23:33 newAdmin 阅读(494) 评论(0) 推荐(0) 编辑