Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
Compression and Archive Extensions
Bzip2
LZF
Phar
Rar
Zip
Zlib
Compression and Archive Extensions
Installing/Configuring
Compression and Archive Extensions
Last updated: Mon, 26 Oct 2026
Bzip2
Introduction
The bzip2 functions are used to transparently read and write bzip2 (.bz2) compressed files.
Installing/Configuring
Requirements
Installation
Resource Types
Examples
Bzip2 Functions
bzclose
— Close a bzip2 file
bzcompress
— Compress a string into bzip2 encoded data
bzdecompress
— Decompresses bzip2 encoded data
bzerrno
— Returns a bzip2 error number
bzerror
— Returns the bzip2 error number and error string in an array
bzerrstr
— Returns a bzip2 error string
bzflush
— Do nothing
bzopen
— Opens a bzip2 compressed file
bzread
— Binary safe bzip2 file read
bzwrite
— Binary safe bzip2 file write
Compression and Archive Extensions
Installing/Configuring
Compression and Archive Extensions
Last updated: Mon, 26 Oct 2026