摘要: 安装# wget http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz# tar xzvf xcache-1.3.1.tar.gz# cd xcache-1.3.1#/usr/local/php-5.3.5/bin/phpize# /configure --with-php-config=/usr/local/php-5.3.5/bin/php-config --enable-xcache# make# make install# cat xcache.ini >> /usr/local/php-5.3. 阅读全文
posted @ 2012-07-10 17:33 李秋 阅读(868) 评论(0) 推荐(0)
摘要: 近日在看一个speedphp的代码时,看到一个非常好用的函数:extract(),它的主要作用是将数组展开,键名作为变量名,元素值为变量值,可以说为数组的操作提供了另外一个方便的工具,比方说,可以很方便的提取$_POST或者$_GET的元素,对表单提交上来的内容不能不用一一赋值,直接使用下面代码:form.html<form action="action.php" method="post"><input type="text" name="username"><input type= 阅读全文
posted @ 2012-07-10 15:17 李秋 阅读(975) 评论(8) 推荐(0)