2014年12月4日

摘要: We can see this comment in nginx.conf.# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000Means: When the nginx handle PHP, FastCGI se... 阅读全文
posted @ 2014-12-04 15:47 技术员 阅读(167) 评论(0) 推荐(0) 编辑

2014年9月23日

摘要: Uppercase or lowercase L means long (however, using a lowercase l is confusing because it can look like the number one)long l = 200L;Uppercase or lowe... 阅读全文
posted @ 2014-09-23 15:19 技术员 阅读(338) 评论(0) 推荐(0) 编辑

2014年5月23日

摘要: I hate windows. 1. 下载安装 ImageMagick, 选择合适您电脑的版本,我下载的是: ImageMagick-6.8.9-1-Q16-x86-dll.exehttp://www.imagemagick.org/script/binary-releases.php#window... 阅读全文
posted @ 2014-05-23 11:49 技术员 阅读(2317) 评论(2) 推荐(1) 编辑

2013年4月27日

摘要: 1. Method#multiRequest 接收需要处理的信息这里的参数是我们所需要的处理的URL地址及其它信息。/** * @param array ('key' => array()) * You can find 'key' inside of @method getApiMap * array('someMethodKey'=>array('url' => '', * 'requestData' => 'post data', * 'othe 阅读全文
posted @ 2013-04-27 14:59 技术员 阅读(473) 评论(0) 推荐(0) 编辑

2013年4月3日

摘要: 红色部分为重要留意部分!// application components 'components'=>array( 'user'=>array( // enable cookie-based authentication 'allowAutoLogin'=>true, 'stateKeyPrefix' => 'KOPUSTATE', 'identityCookie'=>array('domain' => APPLICATION_COOKIE_DO 阅读全文
posted @ 2013-04-03 15:45 技术员 阅读(318) 评论(0) 推荐(0) 编辑

2013年3月8日

摘要: 多个Yii项目,共享cookie登录方式,修改main.php多个项目:每个项目均有不同的子域名。'components'=>array( 'user'=>array( // enable cookie-based authentication 'allowAutoLogin'=>true, 'stateKeyPrefix' => 'Enter your state key prefix here', ), 'session'=>array( 'cookiePa 阅读全文
posted @ 2013-03-08 13:54 技术员 阅读(1552) 评论(0) 推荐(0) 编辑

2013年1月30日

摘要: 一群猴子排成一圈,按1,2,...,n依次编号。然后从第1只开始数,数到第m只,把它踢出圈,从它后面再开始数,再数到第m只,在把它踢出去...,如此不停的进行下去,直到最后只剩下一只猴子为止,那只猴子就叫做大王。要求编程模拟此过程,输入m、n,输出最后那个大王的编号。$s = 0;$n = 9;$m = 3;for($i=1;$i<=$n;$i++) { $s = ($s+$m)%$i;}echo $s+1 . "<br />";It's amazing. but why? 阅读全文
posted @ 2013-01-30 13:25 技术员 阅读(3491) 评论(0) 推荐(1) 编辑

2013年1月9日

摘要: 1 <?php 2 /** 3 * @file IPHitsLimit.php 4 * @version 1.0 5 * @author guoxiaosong <> 6 * @date 2012-11-14 7 * @brief Limit ip frequency. 8 */ 9 class IPHitsLimit 10 { 11 const INDEX_DAY = 0; 12 const INDEX_HOUR = 1; 13 const INDEX_MINUTE = 2; 14 const INDE... 阅读全文
posted @ 2013-01-09 10:21 技术员 阅读(170) 评论(0) 推荐(0) 编辑

2012年12月5日

摘要: $this->createTable('{{test}}', array( 'id' => 'pk', ), 'ENGINE=InnoDB DEFAULT CHARSET=utf8'); 阅读全文
posted @ 2012-12-05 17:04 技术员 阅读(140) 评论(0) 推荐(0) 编辑

2012年11月27日

摘要: Windows下的Memcache安装:1. 下载memcache的windows稳定版,解压放某个盘下面,比如在d:\usr\src\memcached2. 在终端(也即cmd命令界面)下输入 'd:\usr\src\memcached\memcached.exe -d install' 安装 (注意,win7 需要管理员帐号运行CMD)3. 再输入: 'd:\usr\src\memcached\memcached.exe -d start' 启动。NOTE: 以后memcached将作为windows的一个服务每次开机时自动启动。这样服务器端已经安装完毕了。 阅读全文
posted @ 2012-11-27 15:25 技术员 阅读(160) 评论(0) 推荐(0) 编辑

导航