News Feed
Sections




News Archive
feed this:

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

Derick Rethans:
Mongo is dead, long live MongoClient
November 28, 2012 @ 09:13:51

In this recent post to his site Derick Rethans mentions the shiny new "MongoClient" class that the latest release of the Mongo PHP drivers provides.

This afternoon we published version 1.3.0 of the MongoDB PHP driver. Besides a number of bug fixes since RC2 and RC3, this new release also includes a new MongoClient class. This new MongoClient class serves as a replacement for the Mongo class. The old Mongo class is now deprecated and will be removed in a future release, although we are keeping it in place for now because of backwards compatibility reasons. We have already removed it mostly from the documentation, and are working to update all our other material as well.

The main change that comes with the MongoClient class is that it now has acknowledged writes on by default (a "safe mode"). This option determines wether or not the client waits for a confirmation from the server when a write has happened. He includes a bit of code showing how to: turn it off, keep it on or using replica set acknowledged writes. You can also set it on a per-query basis.

0 comments voice your opinion now!
mongo class driver release mongoclient class confirm write


Chris Hartjes' Blog:
Simple User Registration in CakePHP 1.2, Part II
January 23, 2008 @ 09:36:00

Chris Hartjes has followed up on a previous post about user authentication in CakePHP with a few more comments in part two.

I got a question in the comments about my previous post on simple user registration about how to do some of the necessary validation for registration in the model. I thought I'd show some code I did to do exactly that.

He includes the code for his example with the key, he explains, being the use of a second field (the confirm password field) to do the validation.

0 comments voice your opinion now!
user registration cakephp validation confirm field



Community Events





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


composer symfony podcast library opinion version framework introduction security language package community update series voicesoftheelephpant release interview laravel install tool

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