Switch to: V11V10V9V8V7V6V5

valentina_get_host_info()

Declaration

string valentina_get_host_info ( [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

Describes the type of connection in use for the connection, including the server host name.

Return Values

Returns a string describing the type of VServer connection in use for the connection or FALSE on failure.

Examples

Example 1.

<?php
$link = valentina_connect('localhost', val_user', 'val_password');
if (!$link) {
   die('Could not connect: ' . valentina_error());
}
printf("VServer host info: %s\n", valentina_get_host_info());
?>  

The above example will output something similar to:

VServer host info: localhost

See Also