Php/docs/sphinxclient.setserver

提供:Dev Guides
< Php
2020年12月14日 (月) 11:59時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

SphinxClient::setServer

(PECL sphinx >= 0.1.0)

SphinxClient::setServerSet searchd host and port


説明

public SphinxClient::setServer ( string $server , int $port ) : bool

Sets searchd host name and TCP port. All subsequent requests will use the new host and port settings. Default host and port are 'localhost' and 3312, respectively.


パラメータ

server
IP or hostname.
port
Port number.


返り値

成功した場合に true を、失敗した場合に false を返します。