Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
<?php Swoole\Coroutine\FastCGI\Client::__construct(string $host, int $port = 0): Swoole\Coroutine\FastCGI\Client
The host is where the FastCGI FPM server is monitoring, this could be an IP address like 127.0.0.1
or a UnixSocket like unix://tmp/php-fpm.sock
.
The target server port number. No need to pass in the port when using a UnixSocket.
Returns a new Swoole\Coroutine\FastCGI\Client object based on the host and port given
Create a new FastCGI Client object, based on the given host and port of the target FPM server using the FastCGI protocol.