chmpxpx_create
Creates a chmpx handle
Description
function chmpxpx_create(string $filepath, bool $is_on_server, bool $is_auto_rejoin = false) {}
Creates a chmpx handle.
Parameters
- filepath
- Specifies the chmpx configuration file path.
- is_on_server
- True if a ChmpxServer instance.
- is_auto_rejoin
- True if reconnect with a chmpx server/slave process automatically
Return Values
Returns a chmpx handle resource on success or false on failure.
Examples
php -r 'var_dump(chmpxpx_create("./tests/server.yaml", true));'
The above example will output:
resource(4) of type (chmpx_handle)
See Also
- Chmpx::create - Creates a chmpx handle