ZIP support host problems

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
gosu
Forum Newbie
Posts: 19
Joined: Mon Jun 02, 2008 12:17 pm

ZIP support host problems

Post 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:
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: ZIP support host problems

Post 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.
gosu
Forum Newbie
Posts: 19
Joined: Mon Jun 02, 2008 12:17 pm

Re: ZIP support host problems

Post 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
Post Reply