title: PHP with Oracle - Error 12537 (TNS:connection closed)
body: <p>I am trying to use PHP with Oracle 11g. I have configured the php.ini file (enabled php_oci8.dll, php_oci8_11g.dll)</p>
  
  <p>This is the testing code I'm using:
      
  
  <pre><code>if ($conn = oci_connect('system', 'pass', '//localhost:1158/em')) {
      print 'Successfully connected to Oracle Database XE!';
      oci_close($conn);
  } else {
      $errmsg = oci_error();
      print 'Oracle connect error: ' . $errmsg['message'];
  }
  ?&gt;
  </code></pre>
  
  <p>But I'm getting this error:
  Oracle connect error:</p>
  
  <pre><code>ORA-12537: TNS:connection closed
  </code></pre>
  
  <p>Any solution?</p>