11 2012 档案

Install MemCache at window
摘要: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 技术员 阅读(168) 评论(0) 推荐(0)

Stupid IE process 'application/json' content-type.
摘要:Let's see the snippets first.jQuery$.ajax({ 'url': 'http://aptana-local/testobject/test1.php', 'dataType': 'json', "success": function(data){ alert(data); console.log(data); console.log(typeof data); }});PHP (test1.php)echo $this->_sendResponse($arr); 阅读全文

posted @ 2012-11-22 16:07 技术员 阅读(912) 评论(0) 推荐(0)

关于Session 键值的小标识!
摘要:环境:Yii 1.1.12 + PHP 5.3.3 + CentOS 6行为描述: 我试图使用一个纯数字作为SESSION的键值。(string)round(microtime(true) * 1000); // 此方法在CentOS 5上可以用。尽管前面已经强制使用字符,但仍然无法加入SESSION!不得已改为‘s' . round(microtime(true) * 1000);问题原因不明! 阅读全文

posted @ 2012-11-16 10:21 技术员 阅读(214) 评论(0) 推荐(0)

Change error CSS Class of text Filed.
摘要:Actaully we use this creating a text filed.$form->textField(CModel $model, string $attribute, array $htmlOptions=array ( ));Form reference.Generates a text field input for a model attribute. If the attribute has input error, the input field's CSS class will be appended witherrorCss. The defau 阅读全文

posted @ 2012-11-10 15:17 技术员 阅读(170) 评论(0) 推荐(0)

How to use your own jQuery library in YII?
摘要:How to use your own jQuery library in YII?We can use the following line to load Yii jQuery, but it's not always latest version of jQuery. Sometime we need to customize it.Yii::app()->clientScript->registerCoreScript('jquery');So add the following to config/main.php 'components& 阅读全文

posted @ 2012-11-10 15:01 技术员 阅读(215) 评论(0) 推荐(0)

导航