<aspseek_cached_page_dataaspseek_connect>
 Last updated: Fri, 09 May 2003

aspseek_close

(PHP 4 >= 4.1.0)

aspseek_close -- Close searchd connection

Description

bool aspseek_close ( [resource link_identifier])

Returns TRUE on success or FALSE on failure.

aspseek_close() closes the connection to the searchd server that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is used.

Using aspseek_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

Note

aspseek_close() will not close persistent links created by aspseek_pconnect().

Example 1. ASPseek close example

<?php
    $link = aspseek_connect("localhost")
        or die("Could not connect: " . aspseek_error());
    print ("Connected successfully");
    aspseek_close($link);
?>

See also: aspseek_connect() and aspseek_pconnect().


<aspseek_cached_page_dataaspseek_connect>
 Last updated: Fri, 09 May 2003