Last updated: Fri, 09 May 2003


(PHP 4 >= 4.1.0)

aspseek_close -- Close searchd connection


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.


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

Example 1. ASPseek close example

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

See also: aspseek_connect() and aspseek_pconnect().

 Last updated: Fri, 09 May 2003