My question is: how can I accurately capture and display the name of the db to which I am connected?

We use Oracle here. If you know of a solid online resource for PHP/Oracle guidance which I can tap, please redirect.

I'm developing a little application connected to our pre-production database. Once the application is live I'll be pointing it to the live database. In the interim I'd like to note on the screen which database the user is connected to so that the folks beta testing are kept aware (and don't stress out when they've deleted several things they didn't intend to remove).

I am attempting to use the getenv function for this purpose:

$ORACLE_SID = getenv("ORACLE_SID");

 but when I echo it

echo "ORACLE_SID = $ORACLE_SID<br>";

It shows that I am connected to the live database when I am certain (I checked both the connection params and all the data after posting changes) I am connected to pre-production.



Thanks either way.  I am searching via other sources too.


Julia Sheehy
Vassar College

begin:vcard
fn:Julia Sheehy
n:Sheehy;Julia
org:Vassar College;Administrative Information Services
adr;dom:;;C 221;Poughkeepsie;NY;12604
email;internet:[EMAIL PROTECTED]
title:Programmer/Analyst
tel;work:845-437-5939
note;quoted-printable:Raise money for your favorite charity or school just by searching the Int=
	ernet with GoodSearch - www.goodsearch.com - powered by Yahoo!=0D=0A=
	=0D=0A=
	
x-mozilla-html:FALSE
url:http://computing.vassar.edu/
version:2.1
end:vcard

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to