Ulrich Kautz has recently taken a look at validation and sanitization of data in PHP applications. He talks about several different methods - both in core PHP and in various frameworks.Validation and sanitization are extremely important topics, any developer should be aware of. Especially with powerful, modern frameworks, people seem to forget about the underlying concepts and wrongly assume it's already solved somehow. Correctly used and early on integrated, both play the central role in defending...
When reading documentation, manuals, narratives, instructions, tutorials, and the like, I frequently see phrases like: aoIf you want to do X, simply aa and then several steps of instructions. Or, aoIn order to do Z, just do this, that and a Continue reading a'
Encryption can be a complex beast of mathematical operations. In this video, we explore the evolution of modern cryptography and some of the basic underlying principles that it uses to keep data secure.Read more A
Wes Mason has started up another project to provide you with a weekly dose of curated PHP content direct to your mailbox - the PHP Weekly Newsletter:[The newsletter is a] curated weekly injection of hot PHP links for your inbox, including the latest articles of interest, videos from talks and tutorials, new projects and of course the latest news in PHP language and platform development. I promise to try to keep links fresh, comments relevant and the hate out of sight.The first edition of the news letter...
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...
Recent releases from the Packagist:cgm/config-admin (1.1.3)
rcrowe/twigbridge (v0.0.2, 0.1, v0.0.1)
Working this long with Zend Framework makes me do things that have become a real routine and I don't pay much attention to it.ASo when I just add few custom routes to myAZend FrameworkAapplication, I don't make a big fuss out of it. But apparently people do struggle with it. They get messages like this:Zend_Controller_Router_Exception: Route default is not definedApparently when you create custom routes,AZend FrameworkA"forgets" about the default route, causing this error to appear.To quickly resolve...
MySQL Connection Class
Easy SQL Generator
CC Classes & Objects
Mini Traffic Site
Print Form PDF
The Voices of the ElePHPant podcast has release their latest episode, another interview with a PHP community member. This time it's Mike Dawidowicz, an organizer of the Buffalo PHP User Group.In the interview Cal talks with Mike about:
How did you get started with the Buffalo PHP user group?
Tell us some of your best practices and successes for running the Buffalo PHP user group
How did you come across sponsors that were open to helping with the user group?
You can listen to this latest episode either...
The Dev/Hell podcast (hosted by Chris Hartjes and Ed Finkler) has posted their latest episode - Episode 23: The Bozo Brush.Episode 23 is packed chock-full of awesome guests. We talk about the controversy around the cancellation of BritRuby, and the larger issues of diversity and inclusiveness at tech conferences, with Ashe Dryden and Reg Braithwaite. We also get into the goofiness of Star Trek and the wonder of railroad games.You can listen to this latest episode either through the in-page player, by...
In a previous post of his Dave Marshall talked about using controllers as "services" in a Silex-based application. In this new post he takes it a step further and shows you how to use route helpers to make working with those controllers even simpler.Supposing we want to render some HTML, do we want to inject the template engine in to the controller? Should the controller be responsible for knowing how to render the template? I'm not sure, but if I can have it not do it with minimal fuss, I think I'd...
If you're a PHPFog user, you know that they're discontinuing the service in favor of their AppFog product. If you're looking to migrate over to this from PHPFog, you should check out this new article from PHPMaster.com with some of the differences between the two services.Have you heard PHPFog is coming to an end? No, well - it is. That's right, in a recent announcement on their mailing list, the company has said that PHPFog will be no more by the end of January, 2013. But if you're on their platform,...
Mongo is dead, long live MongoClient
Tuesday, November 27th 2012, 15:09 GMT
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...
Recent releases from the Packagist:amazonwebservices/aws-sdk-for-php (126.96.36.199)
mishak/web-resource-management (1.1.6, 1.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1)
ajgl/h5bp-bundle (0.1.2, 0.1.1)
Latest PECL Releases:
I'm happy to announce that my PHP 5.4 Cheat Sheet from DZone Refcardz was published today. This is a major update to DZone's existing PHP Refcard with material for PHP 5.4 added. In anticipation of this release, DZone interviewed me about this update. From the interview:
The PHP 5.4 Refcard is for beginner to intermediate PHP developers. It's not for complete beginners as readers will need to have some knowledge of things like basic control structures and data types. More experienced PHP developers...
On the Symfony blog they talk about the SunshinePHP Conference (happening in Miami, February 8th and 9th) and it's dedicated Symfony track.The SunshinePHP conference will take place in M-I-A-M-I, what a cool place for a Symfony conference during cold winter time! Save the date, on February 8th & 9th, you can register for two days of Symfony sessions, making this the first Symfony event on the east coast of the USA. The Call for Papers is still open, so do not hesitate to submit a talk about Symfony.The...
Related to a recent discussion on the php.internals mailing list, Chris Jones has posted about moving away from the MySQL extension in favor of the MySQLi functionality and the effort bubbling up to make the old functionality deprecated.An important discussion on the PHP "internals" development mailing list is taking place. It's one that you should take some note of. It concerns the next step in transitioning PHP applications away from the very old mysql extension and towards adopting the much better...
In the latest post to his site Andrew Podner takes a quick look at something you don't see too much in PHP applications but is a familiar concept to some coming in to the language from others - using "final" to prevent overrides of the code in your classes.In a previous post about inheritance, I showed you how to extend a class. One aspect of extending classes that wasn't fully covered was the idea of overriding a method in a class. You can override a method (function) from the base class by simply...