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
- filepath
- Specifies the chmpx configuration file path.
- 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_server("./tests/server.yaml"));'
The above example will output:
resource(4) of type (chmpx_handle)
See Also
- Chmpx::create - Creates a chmpx handle