Re: Geting PHP Version
| From: | Mark McCulligh | Date: | Wed, 10 Jul 2002 13:14:21 +0000 |
| Subject: | Re: Geting PHP Version | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106789@lists.php.net to get a copy of this message | ||
You a use the command mysql_get_server_info().
Example:
<?php
mysql_connect("localhost", "user", "password") or
die("could not connect");
echo "MySQL server version:".mysql_get_server_info()";
?>
prints: - MySQL server version: 4.0.1-alpha
Also see link below for more details:
http://www.php.net/manual/en/function.mysql-get-server-info.php
_________________________________________
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com
(888)225-6824 ex. 3262
mmcculli@SykesCanada.com
----- Original Message -----
From: "Skyhawk" <tecnico@doiscliques.com>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Wednesday, July 10, 2002 8:29 AM
Subject: Geting PHP Version
Please,
How do I make to get version information of MySql in runtime ?
I would like to show the version of MySql in my website. For example:
Version PHP : <? echo phpversion(); ?>
Version MySql : ??????
Thanks
Skyhawk