pat_mysql_info.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:1k
- <?php
- include('config.php');
- include('pat_mysql_connect.php');
- send_execute_header('MySql Info : '.$dbuser.' @ '.$dbhost);
- echo "<body bgcolor='#E1E4FA'><table border=0>n";
- if (function_exists('mysql_get_client_info'))
- echo "<tr><th>Client info</th><td>".mysql_get_client_info()."</td></tr>n";
- if (function_exists('mysql_get_host_info'))
- echo "<tr><th>Host info</th><td>".mysql_get_host_info()."</td></tr>n";
- if (function_exists('mysql_get_proto_info'))
- echo "<tr><th>Protocol version</th><td>".mysql_get_proto_info()."</td></tr>n";
- if (function_exists('mysql_get_server_info'))
- echo "<tr><th>Server version</th><td>".mysql_get_server_info()."</td></tr>n";
- if (function_exists('mysql_client_encoding'))
- echo "<tr><th>Current Character</th><td>".mysql_client_encoding($mysql_connection)."</td></tr>n";
-
-
- if (function_exists('mysql_stat'))
- {
- $status = explode(' ',mysql_stat($link));
- foreach($status as $id => $value)
- {
- list($key ,$val) = explode(':',$value);
- echo "<tr><th>$key</th><td>".$val."</td></tr>n";
- }
- }
- echo "</table>n";