[LEFT]Hi I found the PHP Sockets article very awesome and easy to follow, however, it’s only good if you’re using a Windows socket connection.
I’m using Fedora, with a fully dedicated server running Apache 2.0.54, PHP 5.0.2.
I know you are supposed to use the Unix Domain socket to connect, and not an IP, but I am having the hardest time finding the built-in socket.
I tried /opt/php51/lib/php5/extensions/sockets.so and I also tried /var/run/acpid.socket, but each one of these gives me this error when I try to compile the php file:
PHP Warning: socket_bind(): Host lookup failed [-10002]: Host name lookup failure in /PHPSocket.php on line 55
That’s bascially saying my socket I gave it to connect to is invalid.
Any help would be really appreciated.
Thanks!
[/LEFT]