SAM 関数
PHP Manual

SAMConnection->__construct

(PECL sam >= 0.1.0)

SAMConnection->__construct — メッセージングサーバへの新しい接続を作成する

説明

SAMConnection::__construct ( void )

新しい SAMConnection オブジェクトを作成します。

例

例1 接続オブジェクトの作成およびメッセージングサーバへの接続

<?php

$conn 
= new SAMConnection();
$conn->connect(SAM_WMQ, array(SAM_HOST => localhost, SAM_PORT => 1414, SAM_BROKER => 'bull'));

?>


SAM 関数
PHP Manual