摘要: 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidatio 阅读全文
posted @ 2016-06-29 17:17 maxomnis 阅读(609) 评论(0) 推荐(0) 编辑
摘要: Windows Windows Windows Windows Globally installing the PHAR involves the same procedure as manually installing Composer on Windows: Create a director 阅读全文
posted @ 2016-06-23 17:06 maxomnis 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 本地主机(Windows环境192.168.66.1)访问虚拟机(192.168.66.139)里面的搭建的php环境(系统centos6.5版本,php版本是5.5.30 ,xdebug 2.4.0),通过命令行pecl install xdebug安装的xdebug, 在php.ini配置xde 阅读全文
posted @ 2016-06-16 17:15 maxomnis 阅读(6707) 评论(0) 推荐(0) 编辑
摘要: <?php // page1.php session_start(); echo 'Welcome to page #1'; $_SESSION['favcolor'] = 'green'; $_SESSION['animal'] = 'cat'; $_SESSION['time'] = time( 阅读全文
posted @ 2016-06-14 17:39 maxomnis 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://minux.blog.51cto.com/8994862/17447611. 持久连接是什么? 1.1 在LVS中,持久连接是为了用来保证当来自同一个用户的请求时能够定位到同一台服务器。 2. 为什么会用到持久连接? 2.1 cookie/session机制的简单说明: 在Web服务通信中,HTTP本身是无状态协议,不能标识用户来源,此时出现了一个问题,当用户在... 阅读全文
posted @ 2016-06-13 18:26 maxomnis 阅读(1305) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://network.51cto.com/art/201005/200279.htm 通过设置persistence的值,使session会话保持。 【51CTO.com独家特稿】业务系统架构为: 拓补一:Nginx(master)+keepalived+Nginx(backup) 阅读全文
posted @ 2016-06-13 18:24 maxomnis 阅读(261) 评论(0) 推荐(0) 编辑
摘要: global_defs { notification_email { test@qq.com } notification_email_from sns-lvs@gmail.com smtp_server 192.168.80.1 smtp_connection_timeout 30 router_ 阅读全文
posted @ 2016-06-13 18:13 maxomnis 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching?hl=zh-cn 通过网络获取内容既缓慢,成本又高:大的响应需要在客户端和服务器之间进 阅读全文
posted @ 2016-06-12 15:32 maxomnis 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 在chrome开发者工具的 Network 面板中,某些请求头后面会跟着下面这行文字: Provisional headers are shown 这种请求实际上根本没有产生,对应的请求头当然也不应该存在。但对于这样的请求,Chrome 32 也会显示部分请求头信息,并给出「CAUTION:Prov 阅读全文
posted @ 2016-06-12 15:07 maxomnis 阅读(4878) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/lwhkdash/archive/2012/11/04/2748291.html HTTP协议中,关于一些头域的解释很模糊,网上的解释有些甚至是打架的,例如cache-control:no-cache,为了搞清这个头,google了不少资料,但 阅读全文
posted @ 2016-06-12 14:31 maxomnis 阅读(2658) 评论(0) 推荐(0) 编辑