hackalive Posted December 17, 2011 Share Posted December 17, 2011 Hi guys I am trying to find a host who supports json_decode, most appear not to, so any ideas on ones which definitely do? Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/ Share on other sites More sharing options...
kicken Posted December 17, 2011 Share Posted December 17, 2011 Any host that supports PHP 5.3 should have json_encode/decode. It doesn't require anything special to support it. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298757 Share on other sites More sharing options...
hackalive Posted December 17, 2011 Author Share Posted December 17, 2011 A number of them say It is not commonly used and this is why it is not added. Our servers are set to meet the requirements of the regular users. The function can not be added I am afraid. Even if they support 5.3! Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298758 Share on other sites More sharing options...
kicken Posted December 17, 2011 Share Posted December 17, 2011 I find that somewhat hard to believe. One, because they would have to specifically disable json for it to not be available, and two because it is actually quite commonly used so if they were really trying to target the average user, they would have it. If your host doesn't support it, pick any other random host with php 5.3, they will almost surely have it. Or get a VPS where you can control what you do and don't have yourself. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298789 Share on other sites More sharing options...
scootstah Posted December 17, 2011 Share Posted December 17, 2011 If your host doesn't support it, pick any other random host with php 5.3, they will almost surely have it. JSON extension has been around since PHP 5.2. Also, it is included in the default PHP bundle so the host would have to compile their own source and explicitly not include it. I see no reason why this would be the case, so I say your host just sucks. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298829 Share on other sites More sharing options...
Pikachu2000 Posted December 17, 2011 Share Posted December 17, 2011 All that's needed is to add it to the disable_functions = directive in the php.ini file, so it's plausible that the host has it disabled. I find it very difficult to believe that disabling json_encode/decode is as widespread as the OP makes it seem, though. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298835 Share on other sites More sharing options...
scootstah Posted December 17, 2011 Share Posted December 17, 2011 All that's needed is to add it to the disable_functions = directive in the php.ini file, so it's plausible that the host has it disabled. I find it very difficult to believe that disabling json_encode/decode is as widespread as the OP makes it seem, though. But then why would they say it "can't be added"? Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298851 Share on other sites More sharing options...
Pikachu2000 Posted December 17, 2011 Share Posted December 17, 2011 I don't know why they would say that, other than to prevent a flood of "well, you enable this function, so why can't you enable that function?" type of requests. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298853 Share on other sites More sharing options...
scootstah Posted December 17, 2011 Share Posted December 17, 2011 I don't know why they would say that, other than to prevent a flood of "well, you enable this function, so why can't you enable that function?" type of requests. Which also points to sucky host in my opinion. Most respectable hosts will have no problem adjusting some things or installing some extra modules for you if you ask nicely. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298856 Share on other sites More sharing options...
salathe Posted December 17, 2011 Share Posted December 17, 2011 Which also points to sucky host in my opinion. Bingo. If your current host won't even let you use a harmless function like json_decode(), then it is time to find another host. Where you get the impression that "most" hosts do not have, or do not allow, the JSON functions is beyond me. No host in their right mind would be without it. Quote Link to comment https://forums.phpfreaks.com/topic/253358-json_decode/#findComment-1298890 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.