Switch to: V11V10V9V8V7V6V5

valentina_stat()

Declaration

resource valentina_stat([ resource link_identifier  ])

Parameters

Name Description
link_identifierThe VServer connection. If the link identifier is not specified, the last link opened by valentina_connect() is assumed. If by chance no connection is found, an E_WARNING level warning is generated.

Description

Show statistic of a Valentina Server.

Return Values

Returns a result resource.

Examples

Example 1.

<?php
$link = valentina_connect('localhost', 'val_user', 'val_password');
if (!$link) {
   die('Could not connect: ' . valentina_error());
}
 
$result = valentina_stat();
 
while ($row = valentina_fetch_assoc($result)) 
{
   echo $row["fld_name"], " ", $row["fld_value"], "\n";
}
 
valentina_close();

See Also