Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: admin/environment/php extension/zip.

admin/environment/php extension/zip: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 1: Line 1:
The Zip PHP extension is required by Moodle, info-ZIP binaries or PclZip library are not used anymore.
'''Why needed?'''
This extension enables you to transparently read or write ZIP compressed archives and the files inside them.  
This extension enables you to transparently read or write ZIP compressed archives and the files inside them.  


The Zip PHP extension is required by Moodle, info-ZIP binaries or PclZip library are not used anymore.


'''Installation'''
'''Installation'''
Line 7: Line 8:
For the Zip file functions to work on your server, these libraries must be installed:
For the Zip file functions to work on your server, these libraries must be installed:


•The ZZIPlib library by Guido Draheim: http://zziplib.sourceforge.net/download.html
* The ZZIPlib library by Guido Draheim: http://zziplib.sourceforge.net/download.html
* The Zip PELC extension: http://snaps.php.net/
•The Zip PELC extension: http://snaps.php.net/


'''Installation on Linux Systems'''
'''Installation on Linux Systems'''


PHP 5+: Zip functions and the Zip library is not enabled by default and must be downloaded from the links above. Use the --with-zip=DIR configure option to include Zip support.
PHP 5+: Zip functions and the Zip library is not enabled by default and must be downloaded from the links above. Use the <code>--with-zip=DIR</code> configure option to include Zip support.


'''Installation on Windows Systems'''
'''Installation on Windows Systems'''
Line 20: Line 20:


To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extensions are located. An example extension_dir value is c:\php\ext.
To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extensions are located. An example extension_dir value is c:\php\ext.
[[Category:Environment|php extension]]
[[Category:ZIP]]

Revision as of 14:53, 5 November 2008

Why needed? This extension enables you to transparently read or write ZIP compressed archives and the files inside them.

The Zip PHP extension is required by Moodle, info-ZIP binaries or PclZip library are not used anymore.

Installation

For the Zip file functions to work on your server, these libraries must be installed:

Installation on Linux Systems

PHP 5+: Zip functions and the Zip library is not enabled by default and must be downloaded from the links above. Use the --with-zip=DIR configure option to include Zip support.

Installation on Windows Systems

PHP 5+: Zip functions is not enabled by default, so the php_zip.dll and the ZZIPlib library must be downloaded from the link above. php_zip.dll must be enabled inside of php.ini.

To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extensions are located. An example extension_dir value is c:\php\ext.