Icon edb_srvname

Returns the current ElevateDB Server name for a remote connection.

Syntax
edb_srvname(<ConnectionHandle>)

<ConnectionHandle> =

Handle of connection returned by edb_connect function

Returns
The ElevateDB Server name (STRING) if successful, or
FALSE if there are any errors

Usage
The edb_srvname function returns the ElevateDB Server name for a remote connection, and returns an empty string for a local connection.

Examples
<?php

// The following script connects to an ElevateDB
// Server and database, displays the server name
// using the edb_srvname() function, and then
// disconnects using the edb_disconnect() function

$con = edb_connect("type=remote;charset=Ansi;address=127.0.0.1;"+
                   "uid=Administrator;pwd=EDBDefault;database=Test");
if (!$con)
  {
  die("Could not connect: " . edb_errmsg());
  }
echo edb_srvname($con);
edb_disconnect($con);
?>
Image