MQSERIES_CONN(3) 1 MQSERIES_CONN(3)
mqseries_conn - MQSeries MQCONN
SYNOPSIS
void mqseries_conn (string $qManagerName, resource &$hconn, resource &$compCode, resource &$reason)
DESCRIPTION
The mqseries_conn(3) (MQCONN) call connects an application program to a queue manager. It provides a queue manager connection handle,
which is used by the application on subsequent message queuing calls.
PARAMETERS
o $qManagerName
-Name of queue manager.Name of the queue manager the application wishes to connect.
o $hConn
-Connection handle.This handle represents the connection to the queue manager.
o $compCode
-Completion code.
o $reason
-Reason code qualifying the compCode.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
mqseries_conn(3) example
<?php
mqseries_conn('WMQ1', $conn, $comp_code, $reason);
if ($comp_code !== MQSERIES_MQCC_OK) {
printf("conn CompCode:%d Reason:%d Text:%s<br>
", $comp_code, $reason, mqseries_strerror($reason));
exit;
}
?>
SEE ALSO
mqseries_disc(3).
PHP Documentation Group MQSERIES_CONN(3)