Icon edb_srvver

Returns the current ElevateDB Server version number and build number for a remote connection.

Syntax
edb_srvver(<ConnectionHandle>)

<ConnectionHandle> =

Handle of connection returned by edb_connect function

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

Usage
The edb_srvver function returns the ElevateDB Server version and build number 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 version
// number using the edb_srvver() 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_srvver($con);
edb_disconnect($con);
?>
Image