title: PHP + ORACLE connection problem
body: <p>My error code is : </p>
  
  <pre><code>Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /data01/app/htdocs/doosanclub/include/classes.pinc on line 47
  </code></pre>
  
  <p>and the line 47 is :</p>
  
  <pre><code>46:     function connect($DBuser,$DBpassword,$DBsid) {
  47:        $this-&gt;conn = OCILogon($DBuser,$DBpassword,$DBsid);
  48:        $this-&gt;mode = OCI_DEFAULT;
  49:    }
  </code></pre>
  
  <p>My ORACLE_HOME is set in root.sh : <code>ORACLE_HOME=/oracle</code></p>
  
  <p>and <code>/oracle</code> is a correct directory that contains <code>/bin</code>.</p>
  
  <p>and.. my $DBsid value is also defined in <code>/oracle/network/admin/tnsnames.ora</code>.</p>
  
  <p>I googled some <a href="http://www.eckford.ca/OpenSourceDev/subjects/UbuntuServer/php-oci8.php" rel="nofollow">docs</a> and try it. I made a test php file.
  THe code is : </p>
  
  <pre><code>oci_internal_debug(1);   // turn on tracing
  $conn = oci_connect("id", "pw", "SID");
  </code></pre>
  
  <p>and it displays : </p>
  
  <pre><code>OCI8 DEBUG: OCINlsEnvironmentVariableGet at (/temp/php_source/php-5.2.13/ext/oci8/oci8.c:1067) OCI8 DEBUG: OCIEnvNlsCreate at (/temp/php_source/php-5.2.13/ext/oci8/oci8.c:1223) 
  Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /data01/app/htdocs/doosanclub/db_connect_test.php on line 23
  OCI8 DEBUG: OCIHandleFree at (/temp/php_source/php-5.2.13/ext/oci8/oci8.c:1547) 
  </code></pre>
  
  <p><code>ORACLE_HOME</code> again.. maybe it is wrong..? I don't know..</p>
  
  <p>It's the first time to setup these things.
  Please help me out this problem. Thanks!</p>