I am writing a web application to decompress archives using PHP.
Out of the general archive formats, which of them are supported by PHP officially?
Can you give me a short introduction of each?
I am writing a web application to decompress archives using PHP.
Out of the general archive formats, which of them are supported by PHP officially?
Can you give me a short introduction of each?
As stated in PHP's own documentation, several extensions are available:
Some of these methods can only compress a single file. To decompress the content of multiple files, you'll probably need to untar them first.
Just remember to have the corresponding extensions enabled on your web server.
There are several more formats that can be used in conjunction with php, but either they aren't supported by an official extension, or you have to execute shell commands to extract them. (Fair Warning: Some web hosting providers disable this functionality.)