This article was originally published inAphp|architect in April 2009 and I published it mostly as it appeared in theAmagazine shy of the odd formatting to fit the blog format better and updated a few year references.
Just remember, this article was written a while ago and any references to PHP 4 reflect that, take it with a pinch of salt :-)
Popular posts from PHPDeveloper.org for the past week:Lorna Mitchell's Blog: Callbacks in PHP
Zend Developer Zone: A little fun with the average tech salaries as reported by dice.com
Phil Sturgeon's Blog: PHP Format abstraction with a simple class
Berry Langerak's Blog: Getters and setters: evil or necessary evil?
Community News: Voices of the Elephpant Podcast
Community News: Latest PEAR Releases for 02.14.2011
Community News: Dutch PHP Conference Ticket Sales Open
WebDev Radio Podcast: Episode 84:...
Sven Eisenschmidt has put together a site that want to help beginners with the Symfony2 framework get up to speed quickly with some handy tips and tricks they can use in their development.Some of the tips listed so far include:
How to free Symfony2 from the sandbox tutorial (with some help from Git)
Doctrine in the Real World - Presentation from Symfony Live 2011
The Path to Symfony in the USA- Presentation from Symfony Live 2011
Translate form labels inside Twig templates
Check out the full...
Brian Swan has a new post answering a question he's gotten about the stored procedures that the SQL Server database includes and whether or not they help prevent SQL injections in your applications.When I've asked people about their strategies for preventing SQL injection, one response is sometimes "I use stored procedures." But, stored procedures do not, by themselves, necessarily protect against SQL injection. The usefulness of a stored procedure as a protective measure has everything to do with how...
In a new post to his blog Sebastian Bergmann talks about an experiment that Derick Rethans is doing with concern to the Xdebug project and some of the bugs that have been found with it. Derick is trying out a campaign to raise pledges in exchange for bugfixes - a sort of "sponsored open source" idea.While both Derick and I live and breathe Open Source and like to hack on code things like work and private life do interfere with the development of our Open Source software projects. So with development...
On SitePoint.com today there's a new article in their unit testing series posted today - a look at annotations and mocking in advanced unit testing with PHPUnit. (Disclaimer: I am the author of this article series.)PHPUnit has lots of advanced features that can be amazingly helpful when that special case comes around. This includes extending the framework itself, making test suites, building static datasets, and the focus of this article: annotations and mocking. Don't worry if you're unsure what either...
On the php|architect site today Beth mentions a contest that's being put on by the WestHost hosting group is putting on to find the best function - custom bits of functionality that are the most impressive and do their job the best.Submit your entry by March 15th to win one of the above prizes. Winner's will be selected from a panel of judges reviewing the top rated PHP functions / code based on utility, creativity, efficiency, and readability. Make sure to get the word out about your submission in order...
Here's what was popular in the PHP community one year ago today:OurBlogLog.com: Joomla vs Drupal, The Sad Truth
IBM developerWorks: Python basics for PHP developers
PHPBuilder.com: The Top Five PHP Content Management Systems
Brian Swan's Blog: Getting Started with PHP and SQL Azure
Ivo Jansch's Blog: PHP as a template language
Ibuildings techPortal: Coding Is The Easy Part
Carson McDonald's Blog: PHP MySQLi and Multiple Prepared Statements
Internet.com: Plotting Map Markers Dynamically Using the Google...
In a new post to the Zend Developer Zone, Ralph Schindler has posted about this month's Bug Hunt Days for the Zend Framework. They start today (Thursday, February 17) and run through Saturday.For those who haven't put the reoccurring event in their calendar, this announcement is for you: Zend Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday of February (the 17th, 18th and 19th 2011), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month,...
This campain on Pledgie is an experiment by Derick Rethans to find out whether or not it is feasible to expedite the work on feature requests in Open Source projects such as Xdebug. Since I more or less gave Derick the idea for this experiment, I will try to shine a light on our reasoning for this approach in this blog posting.
For quite some time now, Derick and I occasionally discuss how the collection of code coverage information in Xdebug can be improved so that PHP_CodeCoverage can provide more...
I am pleased and proud to announce that I will be presenting at this years Dutch PHP Conference from May 19th to the 21st in Amsterdam, Netherlands.
I will be giving a tutorial on the basics of optimizing MySQL along with a session on character sets. I, in particular, look forward to the tutorial since it covers areas that I find fascinating - query and server optimization.
On a personal note, neither I or my husband have ever been to Amsterdam before. So since we have never yet had the opportunity to...
On PHPBuilder.com today there's a new article from Marc Plotz looking at how you can use PHP and cURL with Facebook to update your status.You probably know that cURL is a wonderful tool for extracting data from a Web page -- that's a given if you are a developer worth your salt. However, in this article, I want to show you how to use cURL to do things for you. We will start by exploring cURL in detail and then move on to use a very cool script to update our Facebook status.He introduces cURL for those...
The Voices of the ElePHPant podcast has published it's first full episode today - an interview with Jeremy Kendall, a PHP developer from Tennessee actively involved in the PHP community and an organizer of the MemphisPHP user group.He and Cal talk about how he got started with PHP, his involvement in the MemphisPHP user group and how it's grown. They also talk a bit about the selection process they go through to to select speakers for their meetings.You can listen to this latest episode either through...
Stefan Koopmanschap has a quick new post to his blog today talking about a webinar he and Zend will be putting on this Thursday (Feb 15th) about why documentation should be an important part of your development practices.This thursday, February 15th, I'm doing the presentation as a webinar in the Zend Webinar series. At 9AM PST (or 5PM GMT, 6PM CET) I'll be explaining why documentation is important, and what types of documentation you can use for your project. The webinar should last for about an hour...
In the latest post to his blog Rob Allen shows you how to create a custom View object for your Zend Framework application with the help of the Zend_Application component. It uses one of two ways to set up this custom view object - either in the bootstrap or as a custom resource.Let's say that you want to use your own view object within your Zend Framework application. Creating the view object is easy enough in library/App/View.php along with adding the App_ namespace to the the autoloader in...
Lorna Mitchell has a new post today about using a popular backend processing tool, Gearman, from inside of PHP. Her example gives a full overview of how to add a new job and write the worker for it to make things happen.Basically, this application generates some PDFs from a variety of data sources, makes images, and emails it. Since the whole data processing, image handling, PDF generation process is fairly heavy, I'm putting the requests to generate these onto a gearman queue and having some workers...
If you've been looking for an open source project to get involved with and have thought about one of the many PHP frameworks out there as a viable option, you should take a look at Phil Sturgeon's guide to getting involved with CodeIgniter and some of the recent major changes the project's seen.Now that CodeIgniter (Reactor) 2.0 is out people are starting to get involved, which is great. [...] what makes Reactor so much more different than CodeIgniter has been in the past? Well that is easy, anyone can...
In case you're still using w3schools are a reference (which according to some is harmful to the web), a few new references have recently popped up from the browser vendors.
Constant Array 2
GTK Popup Menu App
Very Simple Diff
Weather.com API Class
Google position for provided keywords
Latest PHP Tweets