(PECL sphinx >= 0.1.0)
SphinxClient::setServer — Set 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.
Returns true
on success or false
on failure.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/sphinxclient.setserver.php