downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SphinxClient::setSortMode> <SphinxClient::setSelect
[edit] Last updated: Fri, 25 May 2012

view this page in

SphinxClient::setServer

(PECL sphinx >= 0.1.0)

SphinxClient::setServer设置searchd的主机名和TCP端口

说明

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

设置searchd的主机名和TCP端口。此后的所有请求都使用新的主机和端口设置。默认的主机和端口分别是“localhost”和3312.

参数

server

IP 或者主机名.

port

端口.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.



add a note add a note User Contributed Notes SphinxClient::setServer
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites