|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
zip files using php?
How do you zip files using php? i know you need to use a form where the type is file so that you can browse for the file. Other than that i dont know what to do. Help
|
|
#2
|
||||
|
||||
|
PHP ships with an extension zip.so
It contains read-only functions for Zip files... this means you can read/open Zip files... You can't [natively] create zip files. There is an Apache extension, i believe called mod_gzip which i believe will allow you to compress files on-the-fly... I've never used it though... |
|
#3
|
|||
|
|||
|
ok. i get it. basically u can't zip a file without the extension you gave in your reply but you can read/open a zip file. that make sense heheh thanx
After i get the above problem solved, how do i create a pop-up to allow the user to specify the name of the file being zipped? |
|
#4
|
|||
|
|||
|
actually i wanted to know how to create an input dialog via php. do use a javascript to do that? if so, how do you do it?
|
|
#5
|
|||
|
|||
|
There are a ton of ways to do this... check this page for a lot of ideas: http://us2.php.net/manual/en/ref.zip.php
The user notes have a lot of good info. or just use this class library : http://www.phpconcept.net/pclzip/index.en.php There are tons of libraries out there... there is one in the pear lib as well.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > zip files using php? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|