Index: [Article Count Order] [Thread]

Date:  Wed, 10 Jan 2007 12:22:37 +0100
From:  Jes Kasper Klittum <jes (at mark) enavn.com>
Subject:  [coba-e:08527] PHP-JSON in NUONCE PHP 5.1.5
To:  coba-e (at mark) bluequartz.org
Message-Id:  <45A4CC7D.8050408 (at mark) enavn.com>
X-Mail-Count: 08527

Hi everyone,

I purchased php 5.1.5 from Nuonce, and now a customer wishes to know 
whether or not it is possible to enable PHP-JSON in php. I tried 
downloading from source and installing like this:

wget http://www.aurore.net/projects/php-json/php-json-ext-1.2.1.tar.bz2
bunzip php-json-ext-1.2.1.tar.bz2
tar fxv php-json-ext-1.2.1.tar
cd php-json-ext-1.2.1
./configure
make
make install

and then adding:

extension=json.so

to /etc/php.d/json.ini

and restarting httpd.

This changed nothing. I alsop tried adding:

extension=json.so

to /etc/httpd/PHP_NUONCE/php.ini

but this also did not enable json.

This test script reports bad interpreter:

<?php
$val = array("abc" => 12,
              "foo" => "bar",
              "bool0" => false,
              "bool1" => true,
              "arr" => array(1, 2, 3, null, 5),
              "float" => 1.2345
             );
$output = json_encode($val);
echo $output."\n";
?>

Has anyone tried this with success?

Best regards,

Jes Kasper Klittum

enavn ApS [ Administration ]
Ringstedgade 11 A
4700 NëÔtved
-------------
enavn ApS [ Datacenter ]
Århusgade 88
2100 KÃenhavn ŽØ


Tel.: +45 88205000
Fax:  +45 88205010
support (at mark) enavn.dk