Skip to content

Commit 0813e88

Browse files
committed
Show that using existing socket is available
1 parent ff2bffb commit 0813e88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ require 'vendor/autoload.php';
3636

3737
use Adoy\FastCGI\Client;
3838

39+
// Existing socket, such as Lighttpd with mod_fastcgi:
40+
$client = new Client('unix:///path/to/php/socket', -1);
41+
// Fastcgi server, such as PHP-FPM:
3942
$client = new Client('localhost', '9000');
4043
$content = 'key=value';
4144
echo $client->request(

0 commit comments

Comments
 (0)