★ wanayoo — archive 1999 http://fr.php.net/manual/es/function.mysql-get-server-info.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<mysql_get_proto_infomysql_info>
view the version of this page
Last updated: Tue, 22 Nov 2005

mysql_get_server_info

(PHP 4 >= 4.0.5, PHP 5)

mysql_get_server_info -- Obtener información del servidor MySQL

Descripción

string 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&oacute;n del servidor MySQL: %s\n", mysql_get_server_info());
?>

El resultado del ejemplo seria algo similar a:

Versi&oacute;n del servidor MySQL: 4.0.1-alpha



add a note add a note User Contributed Notes
mysql_get_server_info
There are no user contributed notes for this page.

<mysql_get_proto_infomysql_info>
 Last updated: Tue, 22 Nov 2005
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Wed Nov 23 05:27:37 2005 CET