PHP Zip File Function
- Previous Page PHP XML
- Next Page PHP Miscellaneous
PHP Zip File ਪ੍ਰਸਤਾਵਨਾ
ਕੰਪ੍ਰੈਸਡ ਫਾਈਲ ਫੰਕਸ਼ਨ ਸਾਨੂੰ ਕੰਪ੍ਰੈਸਡ ਫਾਈਲਾਂ ਨੂੰ ਪੜ੍ਹਣ ਦੀ ਆਗਿਆ ਦਿੰਦੇ ਹਨ。
ਇੰਸਟਾਲ
ਜੇਕਰ ਤੁਸੀਂ ਸਰਵਰ 'ਤੇ Zip File ਫੰਕਸ਼ਨ ਚਲਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ ਤਾਂ ਇਹ ਲਾਇਬਰੇਰੀਆਂ ਇੰਸਟਾਲ ਕਰਨੀ ਜ਼ਰੂਰੀ ਹੈ:
- ਗਿਊਡੋ ਡਰਾਹੇਮ ਦੀ ZZIPlib ਲਾਇਬਰੇਰੀ:ZZIPlib ਲਾਇਬਰੇਰੀ ਡਾਊਨਲਾਡ ਕਰੋ
- ਜ਼ਿਪ PELC ਐਕਸਟੈਂਸ਼ਨ:ਜ਼ਿਪ PELC ਐਕਸਟੈਂਸ਼ਨ ਡਾਊਨਲਾਡ ਕਰੋ
ਲਿਨਕਸ ਸਿਸਟਮ 'ਤੇ ਇੰਸਟਾਲ
PHP 5+:ਜ਼ਿਪ ਫੰਕਸ਼ਨ ਅਤੇ ਜ਼ਿਪ ਲਾਇਬਰੇਰੀ ਮੂਲਤਬੀ ਤੌਰ 'ਤੇ ਸਕਿੰਟ ਨਹੀਂ ਹੁੰਦੀਆਂ, ਜ਼ਰੂਰ ਉੱਪਰੋਕਤ ਲਿੰਕ ਤੋਂ ਡਾਊਨਲਾਡ ਕਰੋ। ਇਸ ਤੋਂ ਵਰਤੋਂ ਕਰੋ --with-zip=DIR ਸੰਰਚਨਾ ਵਿਕਲਪ ਨੂੰ ਜ਼ਿਪ ਸਪੋਰਟ ਨੂੰ ਸ਼ਾਮਲ ਕਰਨ ਲਈ ਸੰਰਚਨਾ ਕਰੋ。
ਵਿੰਡੋਜ਼ ਸਿਸਟਮ ਉੱਤੇ ਇੰਸਟਾਲ
PHP 5+:The Zip function is not enabled by default, you must download php_zip.dll and ZZIPlib library from the above link. php_zip.dll must be enabled within 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 extension is located. For example, the value of extension_dir may be c:\php\ext.
PHP Zip File Function
PHP:Indicates the earliest PHP version that supports this function.
Function | Description | PHP |
---|---|---|
zip_close() | Close the ZIP file. | 4 |
zip_entry_close() | Close an item in the ZIP file. | 4 |
zip_entry_compressedsize() | Return the compressed size of an item in the ZIP file. | 4 |
zip_entry_compressionmethod() | Return the compression method of an item in the ZIP file. | 4 |
zip_entry_filesize() | Return the actual file size of an item in the ZIP file. | 4 |
zip_entry_name() | Return the name of an item in the ZIP file. | 4 |
zip_entry_open() | Open an item in the ZIP file for reading. | 4 |
zip_entry_read() | Read an open item in the ZIP file. | 4 |
zip_open() | Open a ZIP file. | 4 |
zip_read() | Read the next item in the ZIP file. | 4 |
PHP Zip File Constants
None.
- Previous Page PHP XML
- Next Page PHP Miscellaneous