Connecting Tech Pros Worldwide Help | Site Map

Creating a zip file for download

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Jul 26 '07
I am using PHP to provide a dynamic web application. I want to create a zip file to enable users to download the data for local processing offline in Excel or Open Office.
The PHP manual talks about a class "ZipArchive" but my server scripts do not recognise such a class if I try and create a new object.

The server I am using is running PHP 4.4.2, which, being a cheapskate, is good enough for everything else I need.

The PHP manual is confusing, for me, about this functionality. Any resaerch direction starters would be very helpful.
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: Jul 26 '07

re: Creating a zip file for download


Heya, Ken.

Unfortunately, your options are somewhat limited if you are using PHP 4.

If your system is hosted on a *n?x platform, you can use exec() to call the zip tool.
volectricity's Avatar
Expert
 
Join Date: Jun 2007
Location: Baltimore
Posts: 587
#3: Jul 27 '07

re: Creating a zip file for download


You should inform them of the GoPHP5 movement.
tbi tbi is offline
Newbie
 
Join Date: Aug 2007
Posts: 2
#4: Aug 23 '07

re: Creating a zip file for download


thanks for information to me
tbi tbi is offline
Newbie
 
Join Date: Aug 2007
Posts: 2
#5: Aug 23 '07

re: Creating a zip file for download


i have some problem with this information?????
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,741
#6: Aug 23 '07

re: Creating a zip file for download


Quote:

Originally Posted by tbi

i have some problem with this information?????

What problem is that?
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#7: Aug 23 '07

re: Creating a zip file for download


Yeah. I have problems with information, too. Ignorance is so much more fun!

Wheeeeeeeeeeee oh wait. Rent is due. Well, back to the coal mines with me!
Reply