Implementing the bzip2 library on a Linux shared hosting [H]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Hypercaine
Forum Newbie
Posts: 3
Joined: Wed Jan 26, 2011 12:27 am

Implementing the bzip2 library on a Linux shared hosting [H]

Post by Hypercaine »

Hello all,

I need help. I have shared hosting via godaddy.com and I am trying to run a script which has bzip2 function calls.

I have my script set up to check for bzip2 using: function_exists("bzdecompress")

Unfortunately, the bzip2 library is not implemented on this server, and godaddy.com has been completely unhelpful with this issue. I am some-what new to PHP and could really use some help here. I *NEED* to use bzip because the file I am parsing is compressed with bzip. Is there anyway to implement the bzip library on a shared hosting account? I would *GREATLY* appreciate any solution someone can give me, and would be willing to pay someone to help me with this...

Thank you in advance!
Hypercaine
Forum Newbie
Posts: 3
Joined: Wed Jan 26, 2011 12:27 am

Re: Implementing the bzip2 library on a Linux shared hosting

Post by Hypercaine »

bump ... anyone have any ideas?

How can I implement new libraries on a shared hosting server? Where are the libraries located anyways? ;\ Google search reveals very little :(
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Implementing the bzip2 library on a Linux shared hosting

Post by VladSun »

You can't just enable modules in a shared hosting. The LoadModule directive has server-config context only (i.e. you can't use it in .htaccess). You may try to upload the bzip2 executable and call it from your PHP script or simulate the bzdecompress() function.
There are 10 types of people in this world, those who understand binary and those who don't
Hypercaine
Forum Newbie
Posts: 3
Joined: Wed Jan 26, 2011 12:27 am

Re: Implementing the bzip2 library on a Linux shared hosting

Post by Hypercaine »

Ahhh ok... I will give that a try. I *REALLY* appreciate the help man... this has been bothering me for a while now
Post Reply