Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

5.12. zip

cd /usr/src/php-5.2.14/ext/zip/

/usr/local/php-5.2.14/bin/phpize
./configure --with-php-config=/usr/local/php-5.2.14/bin/php-config
make
make install
mv /usr/local/php-5.2.14/lib/php/extensions/no-debug-non-zts-20060613/zip.so /usr/local/php-5.2.14/lib/php/extensions/


vim /usr/local/php-5.2.14/etc/php.ini
extension_dir = "/usr/local/php-5.2.14/lib/php/extensions/"
extension=zip.so

/usr/local/php-5.2.14/bin/php -m | grep zip