re: Re: [PHP-WINDOWS] re: Antwort: [PHP-WINDOWS] Oracle connections?
| From: | phoenix at phoenixdigital dot com | Date: | Fri, 16 Jun 2000 00:51:16 +0000 |
| Subject: | re: Re: [PHP-WINDOWS] re: Antwort: [PHP-WINDOWS] Oracle connections? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2017@lists.php.net to get a copy of this message | ||
Using this code
--------------------------------------------------
<?
dl('php_oracle.dll');
$c1 = Ora_Logon("SCOTT","TIGER");
$cur1 = Ora_Open($c1);
$err1 = Ora_Parse($cur1,"SELECT * FROM emp",0);
$err2=Ora_Exec($cur1);
?>
-------------------------------------------------
The dll is at fault.
I get the error below
---------------------------------------------------
Warning: Invalid library (maybe not a PHP library) 'php_oracle.dll' in Unknown on line 0
Fatal error: Call to undefined function: ora_logon() in
d:/http-root/php/oracle-test/phplisttest.php4 on line 3
---------------------------------------------------
This dll is from this url
download.swwwing.com/php4
> Hello phoenix,
>
> Friday, June 16, 2000, 12:12:17 AM, you wrote:
>
>
> ppc> Hi,
>
> ppc> Thank to everyone who replied and sent me dlls.
> ppc> Problem is none of them ever load into php.
>
> ppc> I have the correct settings in the php.ini file.
> ppc> I have tried loading them from within the script with dl( ) , I just think noone has
> ppc> compiled a working version yet.
> ppc> I would like to hear from anyone who has it working so I can be proved wrong.
> ppc> Please prove me wrong.
>
> >>
> >> try download.swwwing.com/php4!
> >>
> >> Bye,
> >> Wojtek
> >>
>
>
> comment the extension rows in php(3),ini
>
> php3:
> =====
>
> ODBC:
> <?
> $pconn = odbc_pconnect('DNS NAME','SCOTT','TIGER',SQL_CUR_DEFAULT
> );
> $res = odbc_exec($pconn, 'SELECT * FROM EMP');
> odbc_result_all($res);
> ?>
>
> PHP3_OCI73:
> <?
> dl('php3_oci73.dll');
> $c1 = Ora_Logon("SCOTT","TIGER");
> $cur1 = Ora_Open($c1);
> $err1 = Ora_Parse($cur1,"SELECT * FROM emp",0);
> $err2=Ora_Exec($cur1);
> ?>
>
> php4:
> =====
>
> PHP_ORACLE:
>
> <?
> dl('php_oracle.dll');
> $c1 = Ora_Logon("SCOTT","TIGER");
> $cur1 = Ora_Open($c1);
> $err1 = Ora_Parse($cur1,"SELECT * FROM emp",0);
> $err2=Ora_Exec($cur1);
> ?>
>
> I hope I remember well.
>
>
> Best regards,
> L'art
>
>