Welcome Guest, Not a member yet? Register   Sign In
Elliot Haughin Twitter library no worky on EngineHosting

[eluser]Shane Robinson[/eluser]
We just tried to go live with our first CI project, InHawaiiNow.com at EngineHosting (love them!) and found EH doesn’t' yet support PHP 5.2.x which is required by Elliot's excellent library for it's json_decode support.

So, we moved the app to one of our Host Gator accounts.

Chris at Engine Hosting went above and beyond and did a bit of research and found this CI JSON helper in the wiki:

Being new to CI (and the Twitter API), I have no idea how, or if it's even possible to combine this Helper with Elliot's library so we can host at EH...

Anyone else using Elliot's Twitter library at EH? If so, how?

Thank in advance for any assistance.


[eluser]Derek Allard[/eluser]
Just for you Shane Using JSON on servers without native support.

My solution is pretty similar to what is in the wiki, but I implemented it as a library. You should be able to just add this into the Controller's constructor.

// Not all servers will have json_decode() available but those that do should
// use it, and we'll fall back to another solution for those who don't.
if ( ! function_exists('json_decode'))

[eluser]Shane Robinson[/eluser]
You rock, Derek!!

Thanks so much! I'll give this a try and post back here with how it goes...

Theme © iAndrew 2016 - Forum software by © MyBB