# PHP 5 Sockets with Flash 8, help with UNIX sockets

**URL:** <https://forum.kirupa.com/t/php-5-sockets-with-flash-8-help-with-unix-sockets/210089>\
**Category:** flash\
**Created:** [December 14, 2006, 9:29pm UTC](https://forum.kirupa.com/t/php-5-sockets-with-flash-8-help-with-unix-sockets/210089 "2006-12-14T21:29:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Propel](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Propel](https://forum.kirupa.com/u/Propel)\
**Post date:** [December 14, 2006, 9:29pm UTC](https://forum.kirupa.com/t/php-5-sockets-with-flash-8-help-with-unix-sockets/210089/1 "2006-12-14T21:29:38Z")

</div>

[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]
