search for: stream_socket_client

Displaying 1 result from an estimated 1 matches for "stream_socket_client".

2013 Feb 27
2
how to talk with doveadmin unix socket
..."USER\t1\tpiotr.rotter at active24.pl\temail=piotr.rotter at active24.pl\tclear=7T33z456\thome=/vm/08/A/active24.pl/piotr.rotter/\tuid=502\tgid=502\tquota_rule=*:storage=2097152000B\tquota_rule2=*:messages=50000\n", 8169) = 196 and I wrote super simple client in php: <?php $sock = stream_socket_client('unix:///var/run/dovecot/doveadm-server', $errno, $errstr); fwrite($sock, "VERSION\t1\t0\nUSER\t1\tpiotr.rotter at active24.pl\tservice=doveadm\n"); echo fread($sock, 4096)."\n"; echo fread($sock, 4096)."\n"; fclose($sock); ?> But i get only "+"...