Chmpx::createServer
Creates a ChmpxServer instance
Description
public function createServer(string $filepath, bool $is_auto_rejoin = false): bool
Creates a ChmpxServer instance.
Parameters
- filepath
- Specifies the chmpx configuration file path.
- is_auto_rejoin
- True if reconnect with a chmpx server/slave process automatically.
Return Values
Returns true on success or false on failure.
Examples
php -r '$chmpx = new Chmpx(); var_dump($chmpx->createServer("./tests/server.yaml", true));'
The above example will output:
bool(true)
See Also
- Chmpx::destroy - Destroys a Chmpx instance