Re: Error when trying to connecting to an Oracle database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Janet,

This is a PHP 5 only function. Are you running PHP 5? If not, try using
ocilogon() instead. If you are running 5, then maybe the Oracle library
wasn't included when PHP was compiled.

HTH,
Tony


On 9/26/06 2:13 PM, "Janet Smith" <jsmith7@xxxxxxxxxxxxxxxxxx> wrote:

> I am trying to use a program written in PHP but connect to an Oracle
> database. 
> 
> We have a function as follows:
> 
> function dbconnect($db, $username, $password)
> {
>    global $siteadmin;
>    global $db;
> 
>    // $bob = @mysql_connect($db, $username, $password);
>    //$bob= oci_connect($username, $password, $db);
>    // mysql_select_db($db, $bob);
>    $bob = oci_connect("xxxx", "zzzz", "devl");
>                   echo $bob;
> return $bob;
> }
> 
> where xxxx is replaced with a username and zzzz is replaced with a
> password. We get the following error:
> 
> Fatal error: Call to undefined function: oci_connect() in
> /www/WEBUSERS/ics2004/public_html/PHP/Project Manager/dba_copy(1).php on
> line 52
> 
> Line 52 is $bob = oci_connect("xxxx", "zzzz", "devl");
> 
> Can anyone tell me why I am getting this error?
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux