Re: Using Optional Dependencies... ???

From: Date: Mon, 12 Apr 2004 04:50:25 +0000
Subject: Re: Using Optional Dependencies... ???
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27434@lists.php.net to get a copy of this message
Might be nice to have an PEAR::is_installed() package in the PEAR class "Davey" <davey@php.net> wrote in message news:20040411235635.50331.qmail@pb1.pair.com... > Hey all, > > I have a query about how exactly to code optional dependencies... > > I use this: > > @include_once 'XML/Beautifier.php'; > > if (in_array('xml_beautifier',get_declared_classes())) { > $beautifier = new XML_Beautifier; > $code = trim($beautifier->formatString($code)); > } > > I can think of no other way to do it... > > - Davey

« previous php.pear.dev (#27434) next »