Re: Examples for the PEAR XML-RPC API
| From: | Stephan Schmidt | Date: | Wed, 25 Aug 2004 17:55:33 +0000 |
| Subject: | Re: Examples for the PEAR XML-RPC API | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32943@lists.php.net to get a copy of this message | ||
Hi,
Sebastian Bergmann wrote:
Are there examples on how to use PEAR's XML-RPC API somewhere? I need an array with information (package name, summary) for the current {stable|beta} versions of all packages.An easy way to do this is: $config = new PEAR_Config(); $r = new PEAR_Remote($config); $packages = $r->call('package.listAll', false); This returns all packages, you'll have to check for the state yourself. IIRC, The prototypes are parsed from this file: http://cvs.php.net/co.php/pearweb/include/pear-database.php?r=1.231 HTH, Stephan