echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » Fatal error: Class ‘ZipArchive’ not found的解决办法 仲子说

2009-05-14

Fatal error: Class ‘ZipArchive’ not found的解决办法

Posted in PHP, FreeBSD/Unix服务器 at 16:32 Author:仲远

标签:

??????????????’ZipArchive’ ???????????????????php???????php zip?????zlib??

?Windows????????

1??php.ini?????extension=php_zip.dll?????“;”????????php.ini????? zlib.output_compression = Off ?? zlib.output_compression = On ?

2???Apache????

?Unix/Linux???????

1??Linux???php_zip.dll?????????????????????????php?zip????????????

cd /usr/src
wget http://pecl.php.net/get/zip
tar -zxvf zip
cd zip-1.x.x
phpize
./configure
make
sudo make instal

??? ?????make install????????????root??????????sudo????????????????zip.so???????????????/usr/local/lib/php/extensions/zip.so?

2???root????php.ini???????/usr/local/lib/????????????php???????phpinfo()?????

??extension = /usr/local/lib/php/extensions/zip.so??????php.ini????? zlib.output_compression = Off ?? zlib.output_compression = On ?

3??????????Apache?apachectl restart;

????php?zip????????????php???ZipArchive???

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

4 Comments »

  1. silvernet said,

    2009年June2日 at 15:20

    不错,原来是这个问题,谢谢楼主~

  2. piglet said,

    2009年September23日 at 13:53

    按楼主说的解决了,ths

  3. PHPExcel 用PHP汇出成EXCEL | IT档案馆 said,

    2013年January29日 at 17:43

    […] Fatal error: Class ‘ZipArchive’ not found的解决办法 […]

  4. PhoebeX said,

    2017年August16日 at 22:09

    Hello blogger i see you don’t monetize your website. You
    can earn extra money easily, search on youtube for:
    how to earn selling articles

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word