Page 1 of 1

PHP and Oracle Wallet

Posted: Fri Dec 03, 2010 8:56 am
by zjw2112
Has anyone been able to get PHP to access an Oracle database using Oracle Wallet? I have Oracle Wallet set-up correctly, where I can use it using SQLPLUS. Here is what my PHP looks like:

<?php

putenv("TNS_ADMIN=/home/zjw2112/tnsnames");
$dbOps = oci_connect("/","","THEDB",null,OCI_CRED_EXT);

if (!$dbOps {
?>
BAD DB
<?php
}
else {
?>
GOOD DB
<?php
}
?>

I always get BAD DB displayed.