Re: JSON in PHP5?
| From: | Nathan Nobbe | Date: | Fri, 26 Sep 2008 15:19:28 +0000 |
| Subject: | Re: JSON in PHP5? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280980@lists.php.net to get a copy of this message | ||
On Fri, Sep 26, 2008 at 8:50 AM, Dan Zilavy <danz0402@yahoo.com> wrote:
> I thought that the json extensions where in >=PHP5.2. Here's my example
> file and the output. What's up? Do I need to install something else.
>
> file:
> <?php
> echo "PHP version: ", phpversion(), "<br/>";
> if (function_exists('json_encode'))
> echo "json_encode() exists";
> else
> echo "json_encode() doesn't exist";
> ?>
>
> output:
> PHP version: 5.2.5
> json_encode() doesn't exist
did you configure w/ --disable-json ?
-nathan