Chmpx::__destruct Chmpx Class Chmpx::createServer

Chmpx::create

Creates a ChmpxServer/ChmpxSlave instance

Description

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

Creates a ChmpxServer/ChmpxSlave instance.

Parameters

Return Values

Returns true on success or false on failure.

Examples

php -r '$chmpx = new Chmpx(); var_dump($chmpx->create("./tests/server.yaml", true));' 

The above example will output:

bool(true)

See Also

Chmpx::__destruct Chmpx Class Chmpx::createServer