Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

Re: [PHP-DB] PHP4 - OCI8 - Apache - NT4 From: Anabela de Silva (anabela.desilva <email protected>)
Date: 01/04/01

Thank you Leonardo and Weiping! I found the php_oci8.dll and added it to the
windows extensions in my php.ini.

Leonardo or who knows it, how did you get rid of the error:
"_oci_open_server: ORA-12154: TNS: The service name could not be resolved."?

This is the code:

    $database="database";
    $user="user";
    $pass="pass";

    $conn = OCILogon($user,$pass,$database);

    if (!$conn) {
      echo "<BR><B><FONT COLOR=RED>Connection failed!</FONT></B>";
    }else {
      echo "<BR><B><FONT COLOR=RED>Ready!</FONT></B
    }

Please send your contributions to this newsgroup as well, so that others can
benefit from the solutions. Thank you.

Anabela

"Anabela de Silva" <anabela.desilva <email protected>> schrieb in im Newsbeitrag:
92vf2e$t38$1 <email protected>
> Hi,
>
> I'm trying to connect to Oracle 8.0.5.2.1 using PHP 4.0.3 PL1 on an Apache
> 1.3.14 web server. For testing purposes I've installed the web server on
my
> local NT 4 machine. The productive system is an NT 4 server.
>
> Oracle client is installed and the tnsnames.ora is o.k. The connect with
> SQLPlus works fine, but the OCI8 function calls do not work. The error
> message is: "Call to undefined function." I already read the recent
threads
> and went through the PHP online documentation and all the comments,
without
> success yet. I could not find what exactly I need to do to make the OCI8
> functions run. Someone wrote his phpinfo page says that OCI8 is enabled.
> Mine doesn't even say that it is disabled.
>
> Although I'm not that far yet, I'll probably face the problem with the
> environment vars (ORACLE_HOME, ORACLE_SID etc.). I read several times that
> the env vars need to be set in the Apache startup script. I only know the
> httpd.conf and would not know where to place those entries. All those
> threads were referring to Linux. How is this with NT?
>
> Any help is very much appreciated.
>
> :-) Anabela
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>