Re: Mysqli support - test or complain?

From: Date: Mon, 10 Dec 2007 13:04:27 +0000
Subject: Re: Mysqli support - test or complain?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-265603@lists.php.net to get a copy of this message
2007. 12. 10, hétfő keltezéssel 21.58-kor Dave M G ezt írta: > Richard, Per, Andres, > > Thank you for responding. > > If it were entirely my web site to dictate what to do with, I would just > switch for a server that has mysqli available to me. > > However, in this one case, the web site is owned by a small, not very > profitable group that has reasons to stay with their current webhosting > service. I want to support them if possible. > > Richard said: > > Alter your program to support both - use mysqi if it's avilable, > > mysql if it's not. > > How exactly do I test for the presence of mysqli from within a script? for example if (function_exists('mysqli_connect')) greets Zoltán Németh > > Or are you saying I have two different versions of my script? > > -- > Dave M G >

« previous php.general (#265603) next »