Re: Odp: [PHP-PEAR] Installation
| From: | Stig S. Bakken | Date: | Tue, 29 Feb 2000 14:09:24 +0000 |
| Subject: | Re: Odp: [PHP-PEAR] Installation | ||
| References: | 1 2 3 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-43@lists.php.net to get a copy of this message | ||
Lukasz Felsztukier wrote:
>
> ----- Original Message -----
> From: Stig Bakken <Stig.Bakken@fast.no>
> To: Tobias Ratschiller <tobias@dnet.it>
> Cc: <php-pear@lists.php.net>
> Sent: Tuesday, February 29, 2000 2:51 PM
> Subject: Re: [PHP-PEAR] Installation
>
> | Tobias Ratschiller wrote:
> | >
> | > Hey!
> | >
> | > How will Pear packages be installed? What provisions will be taken to
> | > associate meta information (description, author, requirements, ...) with
> | > packages?
> |
> | The idea is to put an XML file in each package distribution with all the
> | meta information. There is no DTD yet, so here's a format suggestion:
> |
> | <?xml version='1.0'?>
> | <package>
> | <packagename>Some/Package</packagename>
> | <originator>POOH</originator>
> | <maintainer sameas="originator"/>
> | <version type="stable">1.0</version>
> | <version type="devel">2.0</version>
> | <copyright sameas="originator"/>
> | <summary>Some package to do something</summary>
> | <description>Full description of the package</description>
> | </package>
> |
> This maybe is not a Pear-related question, but how (from under php ofcoz') can I
> distract version, packagename and so on from the above using php script ?
> Cheers,
> Lukasz
By using some of PHP's XML functions? :-) See
http://www.php.net/manual/ref.xml.php3. There
is also an XML DOM
extension in the works, but it's not in the manual yet.
- Stig