Support » Fixing WordPress » PHP ZIP functionality on all servers?

  • Leo Blanchette

    (@leoclipartillustrationcom)


    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

    (@catacaustic)

    very awesome

    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.

    Leo Blanchette

    (@leoclipartillustrationcom)

    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.

    Yui

    (@fierevere)

    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.