note 26399 added to ref.zip
| From: | ottawasixtyseven at hotmail dot com | Date: | Tue, 29 Oct 2002 18:04:55 +0000 |
| Subject: | note 26399 added to ref.zip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38713@lists.php.net to get a copy of this message | ||
WOW ... after weeks and weeks of research I thought I'd make somebody elses life a little
easier. If you're wondering how to make PHP 4.2.3 read windows zip files (winzip, pkzip, etc)
do this:
NOTE: THIS IS FOR WINDOWS SERVERS NOT LINUX OR OTHER. You need zziplib for Linux. http://zziplib.sourceforge.net/
ON PHP WINDOWS SERVER
1) Grab the php_zip.dll from the extensions dir in php-4.3.0pre2-Win32.zip
2) Add a line extension=php_zip.dll to your php.ini
3) Restart your web server
php_zip.dll obviously works on PHP 4.3.0pre2 but you can't run Zend Optimizer on PHP 4.3 (yet).
You can run Zend Optimizer on PHP 4.2.3 but it doesn't ship with php_zip.dll. The php_zip.dll
that ships with PHP 4.3.0pre2 may even work with older version but I haven't tested that.
For documentation on how to use the zip functions (not the gzip functions that are documented on the
php site) go here:
http://zziplib.sourceforge.net/zziplib.html
Newbie Von Greenhorn
--
http://www.php.net/manual/en/ref.zip.php
http://master.php.net/manage/user-notes.php?action=edit+26399
http://master.php.net/manage/user-notes.php?action=delete+26399
http://master.php.net/manage/user-notes.php?action=reject+26399