Re: redefining the built-in functions
| From: | Teodor Cimpoesu | Date: | Fri, 06 Oct 2000 10:40:02 +0000 |
| Subject: | Re: redefining the built-in functions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18854@lists.php.net to get a copy of this message | ||
Hi Anton!
On Thu, 05 Oct 2000, Anton Kovalenko wrote:
> U don't understand! I mean i don't know HOW to redefine PHP routines which
> do different things with MySQL. I want them to deal with Oracle8i
> How can i do that?
here one would see why a DB Layer is sometimes useful.
If you have in your code direct calls to mysql_*() functions, you must replace
them all. Also, I dunno if the corresponding oci_*() functions have the same
signature.
So first try to do a `translation table' of MySQL vs. Oracle functions, and
see where they match, then you can replace them all with, say, dbi_*() [which
you must write] functions to act as wrapper if sometime in the future ppl will
realize DB2 is better ;)).
I would have been cool if the Unified ODBC had support for Oracle too.
For me it looks like a great idea for this kind of problems.
-- teodor