<aspseek_passthru_cached_pageaspseek_query>
 Last updated: Fri, 09 May 2003

aspseek_pconnect

(PHP 4 >= 4.1.0)

aspseek_pconnect --  Open a persistent connection to searchd

Description

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

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

Warning

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().


<aspseek_passthru_cached_pageaspseek_query>
 Last updated: Fri, 09 May 2003