|
|
 |
mysql_get_server_info (PHP 4 >= 4.0.5, PHP 5) mysql_get_server_info -- Obtener información del servidor
MySQL Descripciónstring mysql_get_server_info ( [resource id_enlace] )
Recupera la versión del servidor MySQL.
Lista de parámetros
-
link_identifier
The MySQL connection. If the
link identifier is not specified, the last link opened by
mysql_connect() is assumed. If no such link is found, it
will try to create one as if mysql_connect() was called
with no arguments. If by chance no connection is found or established, an
E_WARNING level warning is generated.
Valores retornados
Devuelve la versión del servidor MySQL en caso de
éxito, o FALSE si ocurre un error.
Ejemplos
Ejemplo 1. Ejemplo de
mysql_get_server_info() |
<?php
$enlace = mysql_connect("localhost", "mysql_user", "mysql_password");
if (!$enlace) {
die("No pudo conectarse: " . mysql_error());
}
printf("Versión del servidor MySQL: %s\n", mysql_get_server_info());
?>
|
El resultado del ejemplo seria algo
similar a: Versión del servidor MySQL: 4.0.1-alpha |
|
add a note
User Contributed Notes
mysql_get_server_info
There are no user contributed notes for this page.
| |