php class

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.


 

Fabien Potencier's Blog: Find your Files

PHPDeveloper.org  Thu, 04/22/2010 - 13:45

Fabien Potencier has a new post today about an update he's made to an aging bit of code for the Symfony framework to find files on the local filesystem - sfFinder.


 

Find your Files - Fabien Potencier

Planet PHP  Thu, 04/22/2010 - 00:58

The best practices for finding files with PHP has evolved a lot in a the last few years. Back in 2004, one of the very first thing I did with PHP was porting the File::Find::Rule Perl module to PHP. File::Find::Rule is a great way to describe the files and directories you want to work with.

I used the opendir, readdir, and closedir native PHP functions, and it did the job quite well.

The PHP class was named sfFinder, and it can still be found in all symfony versions.


 

Alvaro Videla's Blog: Erlang as Session Storage for PHP

PHPDeveloper.org  Tue, 01/19/2010 - 15:52

Alvaro Videla has a different sort of suggestion for storing the sessions for your application - use Erlang.


 

Ask About PHP Blog: Google Analytics API class for PHP

PHPDeveloper.org  Fri, 05/29/2009 - 08:33

On the Ask About PHP blog today there's a new tutorial (and a new class) helping you to connect your applications with the Google Analytics backend.


 

Cal Evan's Blog: Three Lists I Never Want to See Again

PHPDeveloper.org  Thu, 04/23/2009 - 07:43

You're all thinking it - Cal Evans finally just put it into words with his list of "lists [he] never wants to see again" in the PHP world.

Lists are all the rave these days for bloggers.

The reason is obvious, they require very little thought or research to create. So, in keeping with the current trend, here is my list of three lists never want to see again.

His list of three are posts that contain: