yaz_connect

(PHP4 >= 4.0.1)

yaz_connect --  Returns a positive association ID on success; zero on failure

Description

int yaz_connect (string zurl)

Yaz_connect() prepares for a connection to a Z39.50 target. The zurl argument takes the form host[:port][/database]. If port is omitted 210 is used. If database is omitted Default is used. This function is non-blocking and doesn't attempt to establish a socket - it merely prepares a connect to be performed later when yaz_wait() is called.