Re: Re: PEAR_Info - undefined function getconfig()?

From: Date: Mon, 12 May 2003 19:37:54 +0000
Subject: Re: Re: PEAR_Info - undefined function getconfig()?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5338@lists.php.net to get a copy of this message
You are indeed almost correct. I assume you meant 'print $info->show;' Although the print is superfluous, the $info->show() simply echoes out the result, no more. I have no idea where Ben got the idea that PEAR_Info::show() is a static method. The sample in the package doesn't show that, and the PEAR Manual doesn't show that. Indeed it makes a note of saying its NOT a static method. - Davey Alain Petignat wrote:
Hi i tried a while and now it is working with the following code: <?php include_once("PEAR/Info.php"); // or path absolute $info = new PEAR_Info; print $info->info; ?> This may not be the proper way (?), but it generates the wanted page :) hth alain ---------- your code: "My Code", you say this as if I had to do something. Heh. require_once("PEAR/Info.php"); PEAR_Info::PEAR_Info("/path/to/pear"); PEAR_Info::show();


« previous php.pear.general (#5338) next »