linux下安装eAccelerator加速器

作者 : admin 于 2008年05月24日, 23:16:48
2008
05-24

http://eaccelerator.net/ 官方

http://eaccelerator.net/wiki/Release-0.9.5.3 下载最新版本即可

安装前需要安装gcc或者phpize

然后安装php-devel yum install php-devel

./configure –enable-eaccelerator=shared-memory –with-php-config=/usr/bin/php-config –with-eaccelerator-shared-memory –with-eaccelerator-content-caching
make

注:–with-php-config 后边跟php-config的路径,根据环境确定

然后在php.ini中追加以下代码

安装为 Zend extension 模式:

zend_extension=”eaccelerator.so” //eaccelerator.so 拷贝到 php ext 目录下
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.log_file = “/log/httpd/eaccelerator_log”
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″

如果你使用了thread safe模式安装的PHP,你必须使用 “zend_extension_ts” 替换第一行的 “zend_extension”.
安装为 PHP extension 模式:(这是大部分采用的方式)

extension=”eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.log_file = “/log/httpd/eaccelerator_log”
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″

php ini 设置的详细文档 http://eaccelerator.net/wiki/Settings
api 文档 http://bart.eaccelerator.net/doc/phpdoc/

一个不错的JS日期时间控件-My97Datepicker

作者 : admin 于 2008年05月22日, 11:47:46
2008
05-22

最近在项目中大量表单应用日期时间的录入,原来用jscalendar,后发现此控件的浏览器兼容方面有问题,后修改,未果,寻一很强的插件,My97Datepicker,官方网站是 http://www.my97.net 有相当丰富的接口和调用方式,还有漂亮的模板。

非常建议大家看看。

 Page 4 of 4 « 1  2  3  4