Jump to content

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

Alright, my last topic didnt make sense so here I go again.

 

I have a folder called "v1" on my server. Now how do i compress that folder into a ZIP archieve? I looked into zip functions on php.net and nothing goes about creating zipped folders.

 

Help.

Link to comment
https://forums.phpfreaks.com/topic/81281-creating-a-zip-file/#findComment-413169
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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.