title: how to find php.ini in php5.3
body: <p>i'm having a problem when i'm create socket program.</p>
  
  <pre><code>/* 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);
  ------------------
  </code></pre>
  
  <p>when i'm run a program i'm get the error like this</p>
  
  <pre><code>1
  Fatal error: Call to undefined function socket_create() in /opt/local/apache2/htdocs/php/TCPclient.php on line 14
  </code></pre>
  
  <p>i think that error because i'm not enable <code>extension=php_sockets.dll</code></p>
  
  <p>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 <code>extension=php_sockets.dll</code> but when i'm try again to run my program i'm still get same error,</p>
  
  <p>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.
  <img src="https://i.stack.imgur.com/77kLl.png" alt="php info"></p>