RE: [PHP-DB] oracle and php
| From: | David Balatero | Date: | Fri, 06 Apr 2001 05:25:27 +0000 |
| Subject: | RE: [PHP-DB] oracle and php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8299@lists.php.net to get a copy of this message | ||
Also, in your code, couldn't you eliminate all the trouble you go through
with the error handling and say:
<?php
$handle = OCILogon("scott","tiger") or die("<b>Error:
".ocierror($handle)."</b>");
?>
Then again, I'm not an Oracle expert or anything, but it just makes more
sense to do it that way... please correct me if that's an invalid statement.
-- David Balatero
-----Original Message-----
From: Vlad [mailto:vlad@zircon.net.ua]
Sent: Thursday, April 05, 2001 11:11 PM
To: Novotný Petr; php-db@lists.php.net
Subject: Re: [PHP-DB] oracle and php
It seems that you must include support of oracle functions (special module)
in your configuration file. In windows it is php.ini file.
> Hi all,
> I am begginer in using ORACLE 8i DB with PHP, so please, could anybody
help
> me ? When I try to connect or use any OCI or ORA function, it only say me
>
> Fatal error: Call to unsupported or undefined function ocilogon() in
> /home/httpd/html/ora.php3 on line 8
>
> here is the part of code:
>
>
> <?
>
>
>
>
>
> $handle = OCILogon("scott","tiger");
>
> if ($handle == false ) { echo 'error';
> echo ocierror($handle).":".OCIError($handle);
> exit;
> }
> ....
>
> But I suppose, the problem is not in the code, but in some adjustment ...
>
> Thanks,
> Petr.
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net