mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
example "fix"
just to avoid the "ugly" layout at php.net/myslq_stat git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101301 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cde693d876
commit
c33767ade3
1 changed files with 14 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-stat">
|
||||
<refnamediv>
|
||||
|
@ -30,7 +30,8 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_connect('localhost', "mysql_user", "mysql_password");
|
||||
printf("%s\n", mysql_stat($link));
|
||||
$status = explode(' ',mysql_stat($link));
|
||||
print_r($status);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -38,8 +39,17 @@ printf("%s\n", mysql_stat($link));
|
|||
The above example would produce the following output:
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Uptime: 5380 Threads: 1 Questions: 1321299 Slow queries: 1 Opens: 26 Flush tables: 1 Open tables: 17 Queries per second avg: 245.595
|
||||
|
||||
Array
|
||||
(
|
||||
[0] => Uptime: 5380
|
||||
[1] => Threads: 2
|
||||
[2] => Questions: 1321299
|
||||
[3] => Slow queries: 0
|
||||
[4] => Opens: 26
|
||||
[5] => Flush tables: 1
|
||||
[6] => Open tables: 17
|
||||
[7] => Queries per second avg: 245.595
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue