pdo

Uh, uh… extending mysqlnd: monitoring and statement redirectio...

Planet PHP  Tue, 10/11/2011 - 04:03

Uh, uh… about a year ago Mayflower OpenSource Labs released the mysqlnd user handler plugin (PECL/mysqlnd_uh).

The extension lets you extend and replace mysqlnd internal function calls with PHP. Uh, uh… mysqlnd internals exported to user space?

Who cares as long as it does the trick?! Let me show you seven lines of PHP code to monitor all queries issued by any PHP MySQL application using any PHP MySQL extension (mysql, mysqli, PDO_MySQL) compiled to use the mysqlnd library.


 

Direct MySQL Stream Access - Revised - Johannes Schlüter

Planet PHP  Mon, 09/26/2011 - 04:56

Roughly three years ago I was writing about Direct MySQL Stream Access - a way to access the low-level stream PHP's mysqlnd library is using.

Back then this had been a patch against PHP's mysqli extension. As such a feature is quite dangerous (you can easily mess with the connection state which confuses mysqlnd and/or the MySQL server) we didn't push it into the main PHP tree.

Now three years later it's time to look at this again as we don't need to patch PHP anymore.


 

Replication and load balancing mysqlnd plugin for all PHP MySQL ...

Planet PHP  Wed, 04/20/2011 - 11:58

Happy Easter! Replication is as old as life on earth.

No life without replication. MySQL replication is as old as MySQL, almost.

No MySQL without replication. The PECL/mysqlnd_ms 1.0.0 alpha release is brand new.


 

Chad Lung's Blog: A quick intro to using PHP PDO with MySQL

PHPDeveloper.org  Thu, 03/17/2011 - 08:52

Chad Lung has posted an introduction to PDO, PHP Data Objects, in a simple PHP script:


 

Brian Swan's Blog: PDO Cheat Sheet for SQL Server Driver for PHP

PHPDeveloper.org  Thu, 04/22/2010 - 11:09

For those using (or wanting to use) the SQL Server driver for PHP via PDO, Brian Swan has a handy resource for you - a PDO Cheat Sheet.


 

Community News: WinPHP Challenge Comes to a Close (Two Perspecti...

PHPDeveloper.org  Wed, 06/03/2009 - 10:13

Rob Allen and Juozas Kaziukenas are both wrapping up their entries for this year's WinPHP Challenge and have posted about it (and some of their thoughts on the competition) to their blogs.

From Rob: