In a new post to his blog Chris Roane looks at a method for some advanced form validation using both server-side and client-side validation (with the help of jQuery).Last year I wrote an article in how to implement basic validation for a form with PHP. I decided to re-look at this and improve what I did in that article. This time we are going to make a more advanced PHP form that is more responsive and effective. This PHP sample code has many advantages over the previous article. Not only that, but for...
In a new post to the Liip blog Benoît Pointet talks about his experience with Silex, the micro-framework from Fabien Potencier and the Symfony crowd.In a recent project, my team needed a micro backend for a small educational simulation game which was mostly client-side code. [...] There were so little backend tasks involved that the primary discussion lead to a 'no framework' approach. But after a great presentation by Igor Wiedler at Liip Zurich, we decided to use the Silex PHP micro-framework for our...
On his blog today Jani Hartikainen looks at how you can use the SPL exception types to allow for better overall error handling in your application. Things like BadMethodCallException and OutOfBoundsException make the errors much more descriptive.Since PHP 5, there has been a bundle of built-in exceptions - the "SPL exceptions" - in PHP. However, the documentation for these classes is quite lacking in examples, and it can be difficult to understand when you should be using them. The short answer is...
Latest PEAR Releases:
HTTP_Request2 2.0.0RC1
Net_DNS2 1.1.1
The Zend Framework team announces the immediate availability of Zend Framework
1.11.6, our sixth maintenance release in the 1.11 series, and a simultaneous
release of 1.10.9, a security fix release.
1.11.6 includes more than 60 bug fixes and may be downloaded from the
Zend Framework site .
According to Chris Aitchison, you're not a "software engineer" if you write code an develop applications - you're a "software gardener":The engineering metaphor has had its time in the sun, and maybe it even used to be accurate, but now it really only serves to help non-technical people have unrealistic expectations about how software gets built.The post describes software development as gardens instead of feats of engineering. It talks about the organic nature of development, how no matter the course...
Paul Jones has a new post today looking at the disconnect in the term "quality" that there seems to be between the ones developing the code and the ones paying for the end result.Recently, I was pondering why it is that programmers and employers have different attitudes toward the quality of the projects they collaborate on. The people who do the work are usually the ones who care more about quality. Why? [...] The people who are paying for the work care much less about quality. Why?He touches on some of...
This is part of a mini-series about typical refactorings when using DI containers. Read part one.
(c) Jil A. Brown
Introduce ParameterWhen configuring objects you will stumble upon occurrences of duplicated configuration. As configuration duplication is as bad as code duplication, making refactorings and maintenance time-intense and error-prone, we try to avoid them. Occurrences I had, started from defining the same hosts over and over for different services and quasi hard-coded upload prefixes for...
Kevin van Zonneveld has a new post to his blog revising an older post talking about session management with PHP and how limit the resources needed by them. In this post he points out another method - holding the sessions in RAM rather than on disk.sing 2007 article Create turbocharged storage using tmpfs, we can defeat some of this over-engineering and take a simpler approach to speeding up sessions in PHP. We'll store them decentralized in memory by mounting RAM onto the existing /var/lib/php5 session...
Fresh off his talk about Gimme Bar at the PHP Community Conference, Sean Coates has written two posts on his blog about his experiences with CouchDB and MongoDB while building Gimme Bar. Click on inside, I've got linksa€¦no browniesa€¦but I've got links. They are just as good, right?
Continuing on from his first Symfony2 is getting easier post, Fabien Potencier has two new posts in the series looking at other aspects of the framework that have improved to make developers' lives easier.In part 2 he talks about a patch that's been applied to help with errors in the autoloading process and throw an exception if something's' not found.Part 3 talks about an update to help make the pathing shorter on the Doctrine configuration files and the ability to move it to a centralized mapping file...
On PHPRiot.com there's a new tutorial showing you how to use the Google Translate service to translate the text of your website into any language they support. They interface with it using a cURL connection and JSON messaging.Google Translate is a service from Google that you can use to translate text or HTML from one language to another. One of the great features of this service is that they now offer an API to let you programmatically translate text. In this article I will show you how to interact with...
In a recent project, my team needed a micro backend for a small educational simulation game which was mostly client-side code. The backend responsibilities was to start a game, persist its state and synchronize players along the various phases of the game.
There were so little backend tasks involved that the primary discussion lead to a 'no framework' approach. But after a great presentation by Igor Wiedler at Liip Zurich, we decided to use the Silex PHP micro-framework for our minimal backend needs.
In...
Popular posts from PHPDeveloper.org for the past week:PHPRiot.com: Reducing a Map Path Using Douglas-Peucker Algorithm
Symfony Blog: Symfony2: Getting easier
Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 1
Script-Tutorials.com: Creating a Modern Looking Animated Login System in PHP
Ibuildings techPortal: DPCRadio: Technical Writing
Christian Weiske's Blog: Visualizing PHPUnit runs
Site News: Job Postings for the week of 04.24.2011
Community News: Dutch PHP Conference -...
On the Zend Developer Zone they've posted the second part of Vikram Vaswani's look at using the Twig templating engine in your PHP applications. In the first part of the series, he introduced the tool and got started with some simple examples. In this second part, he dives in deeper to some of the advanced features.In this second and concluding segment, I'll look at some of Twig's other features, including such goodies as template inheritance, custom filters and caching. If you enjoyed the first part of...
Following up on their earlier simple object iterators post, the SitePoint PHP blog is back with a look at more sophisticated iterators you can use to work with database record objects.In my previous post, Simple Object Iterators in PHP, we discovered how to iterate over array items defined within an object using a foreach loop. However, what if you need to iterate over items which are not stored in an array, e.g. records from a database or lines of text read from a file?He shows how to create a script...
On PHPBuilder.com today Jason continues his look at some of the lighter weight PHP frameworks out there with his introduction to Limonade, a micro-framework for rapid web development and prototyping inspired by frameworks like Sinatra and Camping.In this article I'll introduce you to Limonade, highlighting its key features by building a simple exercise diary (incidentally, this Limonade introduction is the latest installment of my ongoing review of lightweight PHP frameworks see Fat-Free, DooPHP, and my...
The Horde Project is presenting their latest applications with a booth and a talk on LinuxTag Berlin, from May 11th to 14th.
In this new post from DevShed today they look at seven different frameworks and compare the speed of how they render a simple request - CakePHP, CodeIgniter, Symfony2, Yii, RainFramework, Doophp and Kohana.There are so many PHP frameworks that it can be hard to keep track of them all. Some are already very popular, while others are relatively new and unknown. [...] Of the seven criteria [of a good framework], this article will examine only the speed and performance.They define their structure for testing...
The Voices of the ElePHPant podcast has posted their latest interview with a member of the PHP community. This time it's Shaun Farley, an organizer of the DC PHP User GroupCal's "three questions" for Shaun about his website BreweryDb.com and its API:
Can you explain what a open data/closed source model model is and why you chose it for BreweryDb?
How do users know that BreweryDb won't change their data usage agreement on the API (and what problems it could cause on a wider scale, outside of BreweryDb)?...
|
Latest PHP Tweets
|