Icon edb_srvdesc

Returns the current ElevateDB Server description for a remote connection.

Syntax
edb_srvname(<ConnectionHandle>)

<ConnectionHandle> =

Handle of connection returned by edb_connect function

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

Usage
The edb_srvdesc function returns the ElevateDB Server description 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 description
// using the edb_srvdesc() 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_srvdesc($con);
edb_disconnect($con);
?>
Image