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