应需要在php-4.4.4上添加zip扩展(注:php-5.2以后zip扩展是直接在php中的,只需要编译php时候添加--with-zip即可安装完毕),根据php官网资料如下:

==================

Linux systems

In order to use these functions you must compile PHP with zip support by using the --with-zip[=DIR] configure option, where [DIR] is the prefix of the » ZZIPlib library install.

Windows

Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.

PHP 5.2.0 and later

Linux systems

In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option.

Windows

Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.

==================
所以
首先,必须安装ZZIPlib,故到此链接下载zziplib-0.10.76.tar.gz
./configure
make
make install
其次,重新编译php ,--with-zip编译其中
最后,重启apache,查看phpinfo.php是否存在zip扩展,如:                                                           

                                            zip

Zip support enabled

表示安装成功!

其他可能方法可参考:

http://hi.baidu.com/eclosion/blog/item/a5c2a4c24c265b1b0ef477ea.html


posted on 2007-09-25 15:38  林宁  阅读(3344)  评论(1编辑  收藏  举报