Re: Mysqli support - test or complain?

From: Date: Mon, 10 Dec 2007 10:53:19 +0000
Subject: Re: Mysqli support - test or complain?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-265599@lists.php.net to get a copy of this message
Dave M G wrote: > One is based on the assumption that mysqli is as likely not to be > available as it is to be installed. In this case I should write my > scripts to test whether it exists and then use either mysqli or > straight mysql commands as appropriate. If this is the way to go, what > do I do to test for the existence of mysqli from within a PHP script? In my opinion, that is overkill. If you need mysqli and a provider does not provide it, simply chose another provider. A lot less effort. > The other is to assume that recent installs and upgrades of PHP > 5 > should have mysqli because that's the currently preferred way of doing > things, and therefore I should contact the web host and ask that they > install it, or I find a different host. > > Which assumption should I be proceeding with? Find a provider/hoster that meets your requirements. You're the customer. /Per Jessen, Zürich

« previous php.general (#265599) next »