- Joshua Thijssen's Blog: php 5.4 + htrouter: Your personal Apache 2.2 compatible server
- DZone.com: Social Comparison of PHP Frameworks
- Tales of a Coder: What are the Essential PHP/Javascript/Web Development Feeds?
- Leasewebs Labs: Painless (well, less painful) migration to Symfony2
- Smashing Magazine: Create A Christmas Wish List With PHP (For Beginners)
- Nikita Popov's Blog: Don't be STUPID: GRASP SOLID!
- NetTuts.com: Ten New Year's Resolutions Every Web Developer Should Make
- Henrik Bjørnskov' Blog: Symfony2: Quick tip for your security configuration
- Nikita Popov's Blog: Supercolliding a PHP array
- Community News: PHP Advent 2011 is Complete!
2011年12月30日星期五
Site News: Popular Posts for the Week of 12.30.2011
Mark Story's Blog: New errors in PHP 5.4
In this quick new post to his blog Mark Story talks about two new errors he ran across when upgrading his installation to PHP 5.4, both showing up under E_ALL.
I've been running the PHP5.4 RC builds for the last few months, and there are some interesting changes in the upcoming PHP release. On top of all the great new features coming in PHP5.4. After updating to PHP5.4-RC4, a few things that used to not trigger errors and silently do the wrong thing, now trigger notices or warnings.
The two he mentions deal with a new warning on illegal string offsets and the other about string offsets ("Notice: String offset cast occurred"). You can find out about more changes in the PHP 5.4 series in the various Changelogs for each Release Candidate and beta release.
Community News: Conference Call for Papers Reminders!
As the conference season for next year gets closer, several conferences have opened their Call for Papers. A few of them have deadlines coming up soon, so don't forget the following important dates if you'd like to submit!
- php|tek 2012 - ends December 31st, 2011 (tomorrow!)
- Dutch PHP Conference - ends January 31st, 2012
- phpDay Italy - ends February 28th, 2012
Be sure to submit while there's still time! Thanks to Thijs Feryn for the reminder!
2011年12月29日星期四
Site News: Blast from the Past - One Year Ago in PHP
- Zend Developer Zone: Book Report: You Want to Do What with PHP?
- Reddit.com: Less obvious PHP tricks?
- Shameer's Blog: PHP 5.3 : Practical look into Lambda functions and closures
- Community News: DBG Debugger Helper for Google Chrome Released
- PHPBuilder.com: Profiling PHP Code with Xdebug and KCacheGrind
- Sjoerd Massen's Blog: Passing the PHP 5.3 ZCE exam
- php|architect Blog: The NoSQL Hype Curve is Bending
- Query7.com: Book Review: PHP5 CMS Framework Development
- Mike Lively's Blog: Pear Channel set up for Phake
- Leniel Macaferi's Blog: Installing PHP on Mac OS X Snow Leopard 10.6.5
- Zend Developer Zone: Using the Stack Exchange API with PHP (part 1)
- Stas Malyshev' Blog: On PHP features
- Mike Lively's Blog: Introducing Phake Mocking Framework
- Sudheer Satyanarayana's Blog: Zend Date Class Constants Cheat Sheet
- Kenny Katzgrau's Blog: Enable Site-Wide Profiling With CodeIgniter
Dzone.com: Open source PHP projects of 2011
On Dzone.com today Giorgio Sironi has posted what he considers to be some of the most popular Open Source PHP projects of 2011 including Symfony2, Doctrine and HipHop.
This non-scientific analysis of the popular and exciting PHP projects starts from researches on active projects on SourceForge and GitHub; the latter is where most of the collaboration and involvement of PHP developers is today. I've also crowdsourced the question on Twitter to catch projects I wasn't aware of, and I hope to do the same with you.
Other projects included in his list are:
- Symfony2 Components
- Moodle
- Composer and Packagist
- Drupal, Joomla, Wordpress
Have a project you think he missed? Let him know!
PHPMaster.com: Writing Custom Session Handlers
On PHPMaster.com today there's a new post showing you how to write custom session handlers - in their case, a database-based option that can span across multiple servers/services.
Sessions are a tool which helps the web programmer overcome the stateless nature of the internet. You can use them to build shopping carts, monitor visits to a website, and even track how a user navigates through your application. PHP's default session handling behavior can provide all you need in most cases, but there may be times when you want to expand the functionality and store session data differently. This article will show you how the default functionality works and then goes on to show you how override it to provide a custom solution.
They introduce how sessions are stored normally (based on the save path) and what the serialized contents of it would look like. They show you how to take this, normally stored on the local file system, and change it to be written to a "session" table in a MySQL database (via PDO). It includes reading, writing, updating and some garbage collection to clean out old values from the table.