Re: Detecting extensions

From: Date: Tue, 22 Oct 2002 13:41:56 +0000
Subject: Re: Detecting extensions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120909@lists.php.net to get a copy of this message
if(extension_loaded('name')) { // ... your code } php.net/extension-loaded -- Maxim Maletsky maxim@php.net www.PHPBeginner.com // where PHP Begins "Stas Maximov" <maximov@eircom.net> wrote... : > Hello list, > > I'm wondering if there is a way to programatically detect whether extension > is loaded or not? Say, if PHP doesn't have XSLT extension loaded then > xslt_create() function will result in fatal compile error which is > impossible to trap. Is there a way to handle this problem gracefully? > > Best regards, > Stas > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#120909) next »