i’m having a problem when i’m create socket program.
/* Get the port for the WWW service. */
$service_port = getservbyname('www', 'tcp');
/* Get the IP address for the target host. */
$address = gethostbyname('localhost');
/* Create a TCP/IP socket. */
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
------------------
when i’m run a program i’m get the error like this
1
Fatal error: Call to undefined function socket_create() in /opt/local/apache2/htdocs/php/TCPclient.php on line 14
i think that error because i’m not enable extension=php_sockets.dll
but when i try to locate php.ini i don’t found php.ini i just found php.ini-development and php.ini-production, i change that file to enable extension=php_sockets.dll but when i’m try again to run my program i’m still get same error,
anyone know what is the problem ?
i’m give the phpinfo of my local, i’m still worried with configuration file in phpinfo that is none , are that is missing?
thanks for your answer.

It looks like you are running PHP on Mac OS. If this was installed using macports, run the following command