stuck on pear

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am trying to run a pear module (JSON.php) without having Pear installed.

ini_set('include_path',ini_get('include_path').";C:\Program Files\Apache

$records[]=array('order'=>1, 'username'=>'joe');
$json=new JSON();

I have JSON.php in C:\Program Files\Apache Group\Apache2\htdocs\pear. I also
have unpacked the PEAR module phpUNIT there (required by JSON.php). However,
whenever I access this page, I get:

| |
Fatal error: Cannot instantiate non-existent class: json in C:\Program
Files\Apache Group\Apache2\htdocs\roomx1\getdata.php on line 7

Can someone please offer me a little direction here? Thanks, Ike

Re: stuck on pear

$json=new Services_JSON();

Site Timeline