Product Documentation

FairCom SQL for PHP

Previous Topic

Next Topic

ctsql_close

Close a c-treePHP connection.

Declaration

bool ctsql_close ( [resource connectionID])

Description

ctsql_close() closes the connection to FairCom DB SQL that is associated with the specified connection identifier.

ctsql_close() is not usually necessary, as non-persistent open links are automatically closed at the end of the script’s execution. Additional details on freeing resources can be found in the PHP documentation.

Returns

Returns TRUE on success or FALSE on failure.

Example


<?php

$link = ctsql_connect('ctreeSQL', 'admin', 'ADMIN');

if (!$link) {

die('Failed to connect to FairCom DB SQL: ' . ctsql_error());

}

echo 'Successfully connected to FairCom DB SQL';

ctsql_close($link);

?>


See also

ctsql_connect(), ctsql_pconnect().

TOCIndex