Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help creating zip file with PHP

Featured Replies

Hi,

 

I have created an event site which has an image uploader which creates a directory for the images for each event. Admin users then need to be able to log in to the back end and download these events as zip files. So, basically, I need to know how to create a zip file from a directory.

 

The images are already in there, I just need to know how to create www.domain.com/event-images.zip from www.domain.com/event-images.

 

Any help is greatly appreciated

 

Thanks

Hi,

 

I have created an event site which has an image uploader which creates a directory for the images for each event. Admin users then need to be able to log in to the back end and download these events as zip files. So, basically, I need to know how to create a zip file from a directory.

 

The images are already in there, I just need to know how to create www.domain.com/event-images.zip from www.domain.com/event-images.

 

Any help is greatly appreciated

 

Thanks

 

Hi,

 

I have always used http://www.phpconcept.net/pclzip to create Zip Files on the fly. You should find plenty of documentation there too.

 

Hope this Helps

Nathan

 

Attain Web Design

  • Author

Thanks for your reply Nathan,

 

Do you have some sample code of how I would go about implementing that class?

 

Thanks

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.