It is slower. Maybe not REEAALLY slower if you don't have much
traffic, but when it comes to kicks, you're losing quite some
performance. I would suggest that you have a look at some of the DB
abstraction layer classes available un phpclasses.upperdesign.com or
at www.hotscripts.com; they could come in handy in making your scripts
DB-independent (as far as it can go) and still not lose so much
performance. I also did my own layer (very simple and easy to put to
work, it will give you the idea) for ODBC and MySQL, that you could
have if you like. Just say so.
Regards,
Gonzalo.
> Hi,
> I'm doing my first steps in PHP and I have my first simple question:
> We use MySQL in our website and I saw that PHP has special functions for
> MySQL.
> Now, I'm starting a big project and I don't want it to be MySQL-dependant,
> so I would like to access MySQL via MyODBC.
> Is this ok?
> Is there any drawback in doing this?
> I guess it's slower, but... is it REAAALLY slower?
> I want to do this, so PHP doesn't know what kind of database is reading, and
> so, I can change my DBMS in the future without disturbing my code.
> Thanks in advance
> Ernesto
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]