chmpxpx_create_server chmpxpx Functions chmpxpx_destroy

chmpxpx_create_slave

Creates a chmpx handle for a chmpx slave process

Description

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

Creates a chmpx handle for a chmpx slave process.

Parameters

Return Values

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

Examples

php -r 'var_dump(chmpxpx_create_slave("./tests/slave.yaml"));'

The above example will output:

resource(4) of type (chmpx_handle)

See Also

chmpxpx_create_server chmpxpx Functions chmpxpx_destroy