Chmpx::create Chmpx Class Chmpx::createSlave

Chmpx::createServer

Creates a ChmpxServer instance

Description

public function createServer(string $filepath, bool $is_auto_rejoin = false): bool

Creates a ChmpxServer instance.

Parameters

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::create Chmpx Class Chmpx::createSlave