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