Re: Mysqli support - test or complain?

From: Date: Mon, 10 Dec 2007 14:10:30 +0000
Subject: Re: Mysqli support - test or complain?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-265605@lists.php.net to get a copy of this message
How exactly do I test for the presence of mysqli from within a script?
IIRC there's a function called extension_loaded(). Or something similar.
Or are you saying I have two different versions of my script?
Not at all. Taking PEAR::DB for example, you could test for the existence of mysqli, and use one DSN if it's there. If not, use another. This is one of the reasons abstraction layers exist. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

« previous php.general (#265605) next »