(PHP 4 >= 4.0.5, PECL yaz >= 0.9.0)
Prepares for a scan
void yaz_scan ( resource $id, string $type, string $startterm [, array $flags ] )
This function prepares for a Z39.50 Scan Request on the specified connection.
To actually transfer the Scan Request to the server and receive the Scan Response, yaz_wait() must be called. Upon completion of yaz_wait() call yaz_error() and yaz_scan_result() to handle the response.