Page 1 of 1

ZIP support host problems

Posted: Mon Jun 02, 2008 12:23 pm
by gosu
Hello guys I got a HUGE problem with hostin my script.
I have script with implemented ZIP functions, the host uses PHP5 & 4 without these functions..
How can I implement support for them, can I use class for them or something else?
P.S im a newb so if you got any ideas be gentle using hard terms :mrgreen:

Re: ZIP support host problems

Posted: Mon Jun 02, 2008 1:53 pm
by nowaydown1
I would check with your webhost. A lot of hosting providers have some facility for you to enable extensions like a custom php.ini file. Some of them will just turn on whatever extension you need.

Re: ZIP support host problems

Posted: Tue Jun 03, 2008 3:09 am
by gosu
I found a solution, might be useful to know:
I switched to PHP5 support, placed custom php.ini (my host provider permits that) in the root dir.
And in php.ini i added support for ZIP, including the zlib library which is not used by default.

php5.ini
extension_dir="/www/site.com/modules/php5"
extension=zlib.so

Everything (except that the script is able to pack a zip archive when upload but i need php_zip.dll available only for winouz host) works fine now, 10 days of :banghead: :mrgreen: but now is AOK. Thanks for the input