Search code examples
phpzipunzipini-set

using ini_set in php to enable zip decompression


Can't find anything on this one. I have a zip file on my server that doesn't openly support the zip_*() functions. DreamHost's support staff has said that I can modify the php.ini file to allow these… but I was wondering if there's just a ini_set() I can use to turn the zip decompression functions on.

Thanks a million! -Joel


Solution

  • zip's done via a module. It couldn't be a simple ini_set() to turn it on. If it's not installed in PHP by default, you'd need to use dl() to load the module at runtime. I can't see a shared hoster enabling this, as it'd allow anyone to load malicious libraries into the webserver process at will.

    I think dreamhost might have been thinking of transparent gzip compression of PHP's output instead, which can be controlled via ini_set().