Re: PHP4 - OCI8 - Apache - NT4

From: Date: Thu, 04 Jan 2001 08:40:43 +0000
Subject: Re: PHP4 - OCI8 - Apache - NT4
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5588@lists.php.net to get a copy of this message
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@sglcarbon.de> schrieb in im Newsbeitrag: 92vf2e$t38$1@toye.p.sourceforge.net... > 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@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#5588) next »