Last updated: Fri, 09 May 2003


(PHP 4 >= 4.1.0)

aspseek_pconnect --  Open a persistent connection to searchd


resource aspseek_pconnect ( [string server])

Returns a positive ASPseek persistent link identifier on success, or FALSE on error.

aspseek_pconnect() establishes a connection to an ASPseek searchd server. The following defaults are assumed for missing optional parameter: server = 'localhost:12345'.

The server parameter can also include a port number. eg. "hostname:port".

Example 1. ASPseek connect example

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


Persistent connections are not currently implemented. Calls to aspseek_pconnect() are functionally identical to aspseek_connect(). Use of aspseek_pconnect() is discouraged.

See also: aspseek_connect() and aspseek_close().

 Last updated: Fri, 09 May 2003