|
PHP5中文手册
SAMConnection->connect()(No version information available, might be only in CVS) SAMConnection->connect() — Establishes a connection to a Messaging Server 说明SAMConnection
bool connect
( string $protocol
[, array $properties
] )
Calling the "connect" method on a SAMConnection object connects the PHP script to a messaging server. No messages can be sent or received until a connection is made. 参数
返回值This method returns FALSE if an error occurs. 范例
Example#1 Creating a connection to a Messaging Server using the IBM MQSeries protocol (WMQ)
<?php
Example#2 Creating a connection with application transaction control and default host and port values
<?php
Example#3 Creating a connection to a Messaging Server using the IBM WebSphere Platform Messaging protocol (WPM)
<?php |