For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2006 > Re: [PHP-DB] My first try with PHP and Oracle ..









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] My first try with PHP and Oracle ..
Christopher Jones

2006-11-22, 6:57 pm

Matthias Bareuther wrote:
> Hello everybody,
>
> I'd like to connect to OracleDB using AdoDB.
>
> Here's my sourcecode so far :
>
> <?php
> error_reporting(E_ALL);
>
> include '/srv/www/htdocs/adodb/adodb.inc.php';
>
> $conn = &ADONewConnection('oracle');
> $conn->debug = true;
> $conn->PConnect($host,$user, $pass, $dbase);
>
> ?>
>
> When I load the site, it alway sais :
> 'MyServer-IP': Missing extension for native


The AdoDB software is written in PHP and connects to your Oracle
database using PHP's oci8 library calls.

You can get AdoDB's "Missing extension" error when oci8 is not
enabled in PHP.

There are lots of installation documents that show how to configure
PHP with oci8 enabled. One is at:

http://www.oracle.com/technology/te...acle-manual.pdf

Chris

--
Christopher Jones, Oracle
Email: Christopher.Jones@oracle.com Tel: +1 650 506 8630
Blog: http://blogs.oracle.com/opal/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com