$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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to