Hi All
I'm not able to use any of the OCI functions, when I'm trying to connect to oracle. i.e. When I use OCILogon(username,password), i get the error :
Call to undefined function: ocilogon() in /u01/httpd/test/first.phtml on line 2
My first.phtml is :
<?
$conn=OCILogon("srini","srini");
$stmt=OCIParse($conn,"select name,id from test");
OCIDefineByName($stmt,"NAME",&$nm);
OCIDefineByName($stmt,"ID",&$newid);
OCIEXecute($stmt);
OCIFetch($stmt);
prinf("Name is ".$nm."<br>");
prinf("Id is ".$newid."<br>");
OCIFreeStatement($stmt);
?>
I've installed Linux Red hat 7, PHP 4.0 and Oracle 8.0 for Linux. (It works fine with Redhat 6.2). Oracle works fine individually.
I've configured php for oracle and mysql as well.
My PHPinfo() looks like :
'./configure' '--with-apache=../apache_1.3.12' '--with-mysql=/usr/local/mysql' '--with-OCI8=/u01/app/oracle/product/8.0.5' '--with-oracle=/u01/app/oracle/product/8.0.5' '--enable-memory-limit=yes' '--enable-debug=no' '--enable-track-vars'
Any Suggestions?
Your help is highly appreciated.
Thanks.
Nithya.