PHP SDK "disconnect"

SQLiteCloud.disconnect()

The disconnect public method closes the connection with the server.

Example


$sqlitecloud = new SQLiteCloud();
$sqlitecloud->username = 'admin';
$sqlitecloud->password = 'admin';

try {
	if ($sqlitecloud->connect('mynode.sqlite.cloud', 8860) == false) {
		$msg = $sqlitecloud->errmsg;
		$sqlitecloud = NULL;
		return $msg;
	}
  } catch (Exception $e) {
		return $e->getMessage();
  }

$sqlitecloud->disconnect();