PHP and Oracle Wallet

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
zjw2112
Forum Newbie
Posts: 1
Joined: Fri Dec 03, 2010 8:51 am

PHP and Oracle Wallet

Post 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.
Post Reply