Re: PHP an Oracle.

From: Date: Mon, 21 Aug 2000 17:08:58 +0000
Subject: Re: PHP an Oracle.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2236@lists.php.net to get a copy of this message
On 2000-08-21, Jorge Sarmiento stated: } How can I acces an Oracle 8.1R2 Enterprise Database installed in a } Windows NT box using PHP 4.0?? } } My PHP 4.0 is installed on a Red Hat 6.2 Linux Box, and is currently } configure to have PostgreSQL support, I cannot configure it with Oracle } Support cause there is no Oracle directory in my linux (Oracle 8.1 is } installed on the NT). [i really need to get that tutorial published!] You will need to install Oracle 8i client on your linux box, as php needs the client libraries for the OCI functions to work. You'll then be able to connect to any 7.x or 8.x database using OCI. Note that if you're running apache, you'll need two SetEnv's in your httpd.conf file: TNS_ADMIN and ORACLE_HOME. Both of these varables need to be pointing to a LOCAL drive, as apache doesn't allow a remote tnsnames.ora file due to security reasons, it seems. Note that I'm writing a quick tutorial for NT/windoze users for getting Oracle and PHP running [it is more difficult in windoze], and I'll e.mail this list and php-windows with the URL when it is ready. HTH, /vjl/

« previous php.db (#2236) next »