php 4.1.1 + apache 1.23 + oracle 8i srv on w2k prof
| From: | quebe | Date: | Sun, 03 Mar 2002 23:59:09 +0000 |
| Subject: | php 4.1.1 + apache 1.23 + oracle 8i srv on w2k prof | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6232@lists.php.net to get a copy of this message | ||
Hi
when I'm trying to connect to my oracle db with
<?php
dl("php_oci8.dll");---------------------------- I've put this because i
though that could help
print "<HTML><PRE>";
$db = "authors";
$c1 = ocilogon("pawel","pawel",$db);
function select_data($conn)
{ $stmt = ociparse($conn,"select * from pawel.authors");
ociexecute($stmt,OCI_DEFAULT);
echo $conn."----selecting\n\n";
while (ocifetch($stmt)){
echo ociresult($stmt,"au_fname")." ";
echo ociresult($stmt,"au_lname")." ";
echo ociresult($stmt,"title")."\n";
}
echo $conn."----done\n\n";
}
select_data($c1);
ocilogoff($c1);
print "</PRE></HTML>";
?>
I've an errors like :
"Warning: Unable to load dynamic library 'c:/php/php_oci8.dll' "
and :
"Fatal error: Call to undefined function: ocilogon() in ...".
In my php.ini I've enabled the extension=php_oci8.dll and
extension_dir=c:\php
The file php_oci8.dll I've put to the path c:\php; c:\php\extension;
c:\winnt\system32
can someone help me?
best regards - Pawel