Fonction mysql_get_server_info() PHP
Définition et utilisation
La fonction mysql_get_server_info() retourne les informations du serveur MySQL.
Retourne le numéro de version du serveur MySQL avec succès, ou false en cas d'échec.
Syntaxe
mysql_get_server_info(connection)
Paramètres | Description |
---|---|
connection | Optionnel. Définir la connexion MySQL. Si non défini, utilise la connexion précédente. |
Exemple
<?php $con = mysql_connect("localhost", "hello", "321"); echo "Informations sur le serveur MySQL: " . mysql_get_server_info($con); ?>
Sortie :
Informations sur le serveur MySQL: 5.0.18-nt