Jump to content

Creating a zip file.


phpSensei

Recommended Posts

Your question asked how you .zip a file, yet you didn't mention anything but making a folder.  You don't convert a folder to a zip folder, you execute a zip a zip function to create a zip file.  If you have that feature available when you installed PHP.

 

http://us3.php.net/zip

Link to comment
https://forums.phpfreaks.com/topic/81281-creating-a-zip-file/#findComment-412509
Share on other sites

Have you checked phpinfo() to see if you have the zip extension installed?

 

PHP Version 5.2.5

 

- PHPinfo

http://localhost/hah/zip.php

 

 

If i dont, how do I install it, or enable this function?

 

zlib.output_compression Off Off 

 

I never understood these things, and how to install some like zlib

 

http://www.zlib.net/

Link to comment
https://forums.phpfreaks.com/topic/81281-creating-a-zip-file/#findComment-414444
Share on other sites

PHP Version 5.2.5

 

- PHPinfo

http://localhost/hah/zip.php

 

http://localhost is only relative to your machine, no one else can see it!!!

 

If i dont, how do I install it, or enable this function?

 

Are you on shared hosting? Ask your host, otherwise, see the manual and follow the instructions.

 

I enabled it

 

zlib.output_compression On Off

 

Output compression has nothing to do with the zip extension. Secondly, if you did want to enable that you would use....

 

zlib.output_compression On

Link to comment
https://forums.phpfreaks.com/topic/81281-creating-a-zip-file/#findComment-414628
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.