Abstracting Oracle Connectivity with PHP/OCI8
The SID is the oracle database you want to connect to. You'll notice that I'm not sending the username and password. Abstract the OCILogin Another common problem in the Oracle connectivity world is where the passwords are stored.
http://www.devarticles.com/c/a/PHP/Abstracting-Oracle-Connectivity-with-PHP-OCI8/1/