Jump to content

json_decode


hackalive

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.