Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error connecting the Oracle database to the PHP, Please Help!!!

558661Feb 7 2007 — edited Feb 8 2007
Hi,
I am trying to connect PHP to an Oracle database. I have set the Apache server properly. Installed PHP 5.2.0, and Oracle 10g basic client and Express edition server. I downloaded PECL pecl-5.1.4-Win32 and placed it in the PHP directory but when I unzipped it I dont see a php_oci.dll file. I have not set any paths for PHP. And when I am trying to run the following connectivity program I am getting an error:

Part of Program:

$conn = oci_connect($username, $password, $database);
if (!$conn) {
$e = oci_error();
PrintOCIError($e);
}

Error:
Debug Error: C:\Program Files\Zend\ZendStudioClient-5.1.0\bin\php5\test.php line 29 - Call to undefined function oci_parse()

Any ideas on what settigns should be done and why does the php_oci.dll file not show up in the PECL folder? Do i need to install some other version?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2007
Added on Feb 7 2007
2 comments
1,811 views