News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
MySQLND, MySQL_UH and other goodies available to PHP programmers
January 26, 2011 @ 11:16:02

On the Zend Developer Zone today there's a new post from Cal Evans mentioning some goodies that are available to PHP programmers in the world of MySQL.

PHP 5.3 shipped with a new driver for MySQL, mysqlnd or MySQL Native Driver. While one of it's biggest features is that it gives us a mysql driver that is part of PHP so it doesn't suffer from licensing issues that the previous driver did. However, in the redesign, the architecture was changed.

He mentions the mysqlnd_uh that's a part of this new MySQL driver and an interesting article from Ulf Wendel about its use in transparent load balancing and sharding. The article includes code that randomly picks a MySQL server for the script to use.

The article is a bit difficult to read at time but trust me, stick with them because the stuff in there is the stuff you want in your head when you are working on your next application.
0 comments voice your opinion now!
mysqlnd mysqluh nativedriver loadbalance shard mysql tutorial


The Bakery:
Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails
June 08, 2007 @ 09:37:00

The Bakery has four new items posted today including articles looking at load balancing, the Request component and UUID behavior in your CakePHP application.

  • Load Balancing and MySQL Master and Slaves - If you are currently using MySql master/slave replication for load balancing and wish to transport to cakePHP, it really couldn't be easier.
  • Request Information Component - Need more insight into how a controller structures a CakePHP request? This little component will log important information and variables for each request to your application's debug log.
  • Uuid Behavior - I have a requirement to use UUID's as primary keys. I was initially using MySQL triggers to call uuid() on insert but in the end decided a behavior makes more sense. This behavior adds a UUID to the field specified in your models.
  • Improved Upload Behaviour with Thumbnails and Name Correction - This is an improved version of Chris Partridge's upload behaviour (http://bin.cakephp.org/saved/17539). The behaviour is able to generate thumbnails if used for images (JPEG/PNG only).

CakePHP users can check out these and more great articles, tutorials and more on The Bakery.

0 comments voice your opinion now!
cakephp tutorial article upload thumbnail uuid request loadbalance cakephp tutorial article upload thumbnail uuid request loadbalance



Community Events











Don't see your event here?
Let us know!


language podcast performance composer opinion hack component security symfony2 release series package install introduction framework hhvm facebook application unittest code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework