Re: Detect mySql Install

From: Date: Wed, 24 Oct 2001 12:34:09 +0000
Subject: Re: Detect mySql Install
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72085@lists.php.net to get a copy of this message
$mysql_installed = function_exists('mysql_query'); as for the version, you can then do: $r = mysql_query("SELECT VERSION()"); $r = mysql_fetch_array($r); $ver = $r[0]; "Chris" <chris@escaperadius.com> wrote in message news:3BD60CCA.8C0BB130@escaperadius.com... > Is there a way to detect, using PHP, if mySql is installed on a server? > Can a version # be determined also? I know this can be done using > phpinfo, but I don't want to use that approach. > > Thanks, > Chris >

« previous php.general (#72085) next »