chmpxpx_close chmpxpx Functions chmpxpx_create_slave

chmpxpx_create_server

Creates a chmpx handle for a chmpx server process

Description

function chmpx_create_server(string $filepath, bool $is_auto_rejoin = false) {}

Creates a chmpx handle for a chmpx server process.

Parameters

Return Values

Returns a chmpx handle resource on success or false on failure.

Examples

php -r 'var_dump(chmpxpx_create_server("./tests/server.yaml"));'

The above example will output:

resource(4) of type (chmpx_handle)

See Also

chmpxpx_close chmpxpx Functions chmpxpx_create_slave