Installing PHP mysqli extension for PEAR/MDB2

Having problems installing PEAR/MDB2 with the mysqli driver? Getting errors like: pear/MDB2_Driver_mysqli requires PHP extension “mysqli” Even though you have “” in your php.ini? Turns out that you have different php.ini’s for CLI (command line) and your web server. The PEAR installer won’t recognize it until you also add that line to /etc/php5/cli/php.ini Be safe […]

Class ‘OAuthSignatureMethod_HMAC_SHA1′ not found

If you’re getting an error to the tune of Class ‘OAuthSignatureMethod_HMAC_SHA1′ not found It’s because you’re trying to use the PEAR OAuth library + abraham’s library at the same time. I suggest finding your php.ini and commenting out what you had added earlier when you installed PEAR OAuth by putting a semi-colon in front of […]

twitter bots, oauth, and php

Alright, so for those looking to write some Twitter bots using the new OAuth authentication method, you’re in for a treat. I began by using abraham’s PHP Twitter OAuth library, which is great, but that came out-of-the-box more for letting users auth themselves through OAuth, not authenticating a bot. The best piece of writing on […]