unzipping with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

unzipping with php

Post by amir »

Hi

I have a php script that downloads and extracts gz and zip files from a remote server and then unzips them.

I had been developing and testing them on a windows machine with php and all worked great, however now that I want to go live with this on a linux server with php (version 4.4.1) I get error: Call to undefined function: zip_open()

From what I've read I need to install some librarys on my linux server (dedicated managed remote server).

Unfortunatly this is where my knowledge falls down, as really I'm a PC guy a *nix admin and installation is just not my bag. If someone could provide me with some install instructions to get past this error that would be fantastic.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

This is not a PHP code thing. This is more of a Server thing. Read the PHP Manual on Zip. There is a section on how to use it (though it appears to be bundled with PHP4) and how to install it.
Post Reply