PHP Classes

MySQL to MySQLi

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  MySQL to MySQLi  
Subject:MySQL to MySQLi
Summary:One file drop as a temporary fix
Messages:8
Author:Dave Smith
Date:2015-05-19 05:42:46
 

  1. MySQL to MySQLi   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-05-19 05:42:46
After reading the last, Lately in PHP Podcast, it was mentioned that it would be nice to have a class that could be dropped in for the sites that stop operating because the MySQL extension has gone away.

If the calls to MySQL are in a class, should be a simple matter of having another class, to extend the original class, which we use to overload with the correct calls to MySQLi.

What I don't know how to do is set up a hook or listener for calls to MySQL functions outside of a class that will capture the request and send it to the new class for the results.

Any ideas?

Dave

There are 7 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.