Iam getting there slowly , oci8 extenstions are loaded but I think iam missing some env settings as I cant connect to a valid tns entry via this script
<?php
// Set Oracle Environment
PutEnv("ORACLE_HOME=/u03/oracle/10203");
PutEnv("TNS_ADMIN=/u03/oracle/10203/network/admin");
PutEnv("LD_LIBRARY_PATH=/instantclient_10_2:/u03/oracle/10203/lib");
$conn = oci_connect('SAMI', 'SAMI', 'emrep');
?>
Warning: oci_connect()
http://function.oci-connect: ORA-12154: TNS:could not resolve the connect identifier specified in /usr/local/apache/htdocs/testoci.php on line 6
NOTE: from oracle account I can connect to "emrep" using sqlplus so i know its working.