Title: PHP ZIP functionality on all servers?
Last modified: August 21, 2016

---

# PHP ZIP functionality on all servers?

 *  [Leo Blanchette](https://wordpress.org/support/users/leoclipartillustrationcom/)
 * (@leoclipartillustrationcom)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-zip-functionality-on-all-servers/)
 * Strangely I cannot seem to google a clear answer on this –
 * I’m using a PHP function to zip a file created in a plugin.
 * Is the likelihood of php supporting ZIP in a wordpress environment very likely?
   Or are there common instances where ZIP is not supported?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-zip-functionality-on-all-servers/#post-3879908)
 * This depends completely on the host. some include it, some don’t. You will have
   to ask the hosting company/companies to see if it is supported on their server.
 *  Thread Starter [Leo Blanchette](https://wordpress.org/support/users/leoclipartillustrationcom/)
 * (@leoclipartillustrationcom)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-zip-functionality-on-all-servers/#post-3879921)
 * Thanks! This is a plugin, so I’ll have to check conditionally I guess.
    Can do
   a simple `class_exists('ZipArchive');`check I suppose. Thanks a lot.
 *  Moderator [Yui](https://wordpress.org/support/users/fierevere/)
 * (@fierevere)
 * 永子
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-zip-functionality-on-all-servers/#post-3879959)
 * you always have to perform conditional checks for any functions in PHP extensions,
   its better to give users proper error message than throw error 500 when they 
   dont have required extension enabled.
 * zip is optional, often enabled on shared hostings, but often excluded on a VPS
   set ups

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP ZIP functionality on all servers?’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [zip](https://wordpress.org/support/topic-tag/zip/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Yui](https://wordpress.org/support/users/fierevere/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/php-zip-functionality-on-all-servers/#post-3879959)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
