Re: Mysqli support - test or complain?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 **

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux