News Feed
Jobs Feed
Sections

Recent Jobs

News Archive


Lorna Mitchell's Blog:
PHP REST Server (Part 3 of 3)
September 05, 2008 @ 12:55:48

Lorna Mitchell has posted the last part of her development process towards creating a sample REST server in PHP:

This is part 3 of my article about writing a restful service server. If you haven't already, you might like to read part 1 (covering the core library and grabbing the information we need from the incoming request) and part 2 (covering the service handler itself) before reading this section. This part covers the Response object that I used to return the data to the user in the correct format.

She show how she created the object to push the response back out to the client with an output() method that displays the XML response in a manually generated format.

0 comments voice your opinion now!
rest server tutorial response xml object


Symfony Blog:
Call the expert How to implement a conditional validator?
September 05, 2008 @ 12:06:18

On the symfony blog today, there's a new post that looks at creating a conditional validator in the context of a classic login form for the framework.

Jon works on a symfony 1.1 project with a classic login form. The form is composed of two fields: a username and a password. The validation rules are quite straightforward: he wants each field to be required and he wants to check the correctness of the password.

They show how to set up a normal login widget and how to apply a sfValidatorCallback in the configure() method to check the values in the form. This method checks the username and password values and tosses an error with sfValidatorError if a problem is found.

0 comments voice your opinion now!
conditional validator tutorial symfony framework


Paul Jones' Blog:
Rasmus Lerdorf's Laconic(a) Performance
September 05, 2008 @ 11:19:55

Paul Jones has taken a look at some performance statistics that Rasmus Lerdorf shared in a recent presentation from some of his tests.

It was with some interest, then, that I viewed Rasmus Lerdorf's slides on the subject of performance benchmarking. I'm beginning to think there's something unexpected or unexamined in his testing methodology.

Paul compares some of his statistics (gathered from his testing) to those of Rasmus and finds a few places where things don't quite match up - specifically in the default overhead that seems to be a part of Rasmus' stats. Paul goes on to look at EC2 as a cause to the problems but ends up without much of a confirmed answer.

0 comments voice your opinion now!
rasmuslerdorf laconica performance statistics


Andi Gutmans' Blog:
Zend Framework 1.6 Featuring Dojo, SOAP, Testing, and more...
September 05, 2008 @ 10:23:26

With the recent release of the 1.6 version of the Zend Framework, Andi Gutmans has posted some thoughts and highlights of features in the new version.

The Zend Framework Community has delivered another feature-rich release of Zend Framework and I'm extremely proud and happy to see the energy and excitement around this project. The ZF team (Wil Sinclair, Matthew Weier O'Phinney, Ralph Schindler, Alexander Veremyev) along with many others in the ZF community and at Zend, have been doing a superb job and have been working very hard to put this release together.

He mentions the Dojo integration, the updates to the SOAP component, updates to make test-driven development simpler and a reminder about ZendCon08 coming soon that will feature several Zend Framework-centric talks.

0 comments voice your opinion now!
zendframework dojo soap testing zendcon08


Kae Verens' Blog:
Moving email from qmail to postfixadmin
September 05, 2008 @ 09:30:05

In this new blog post Kae Verens shares a method he came up with to change over about 300 domains' worth of email over from qmail to posfix in an orderly, automated fashion.

Yesterday we had to move about 300 domains from one machine to another. We bought a new machine recently and are taking this opportunity to move from Qmail (difficult to use, in my opinion) towards Postfix. After doing one or two by hand, i decided that's stupid - why not just automate the whole thing.

The script reads from vqadmin and pushes that information over to mailadmin who makes the emails over on the postfix side. The script makes heavy use of the cURL extension to get the job done.

0 comments voice your opinion now!
move email postfix qmail mailadmin automate vqadmin


Community News:
phpGG User Group Meeting (Sept 23rd, Amsterdam)
September 05, 2008 @ 08:49:56

The Zend Developer Zone has a reminder for those in the Amsterdam area - the phpGG user group (newly formed) will be having their next meeting on September 23rd.

On Tuesday 23 September 2008 the Dutch PHP user group will have its first meeting, in what will become a bi-monthly event. The goal is have meetings with other members, enjoy some coffee and tea and meeting other developers and the chance of prizes to win.

Two speakers will be presenting from about 8pm to 10:30pm - you can find out more about the group and the meeting from their site, including how to get there.

0 comments voice your opinion now!
phpgg user group meeting amsterdam dutch meetup


Chris Hartjes' Blog:
Don't Fear The Command Line Using CakePHP Shells
September 05, 2008 @ 07:53:01

Chris Hartjes has a new post to his blog today focusing on using a bit of the CakePHP framework's functionality from the command line.

I'm porting a spaghetti-PHP application over to using CakePHP I am moving their existing authorization system over to using Cake's Auth component. Of course, they are storing all their passwords in plaintext in the user account table, so I needed an easy way to convert all the existing passwords over to be encrypted using the same hash that Auth would use.

With the help of the shells and tasks that the framework makes availiable, he's able to make a simple 24 line class (EncryptPasswordShell) that extends the Shell object and loops through the data to push it back into the database in the correct password format.

0 comments voice your opinion now!
cakephp commandline shell task tutorial convert password



Total PHP:
Browser based template editor
September 04, 2008 @ 14:34:36

On the Total PHP blog today, there's a new tutorial showing how to make a very basic template editing form to update the templates for your site.

A common feature to CMS scripts is a browser based means of editing your templates. This can be helpful if you manage your site remotely or on the move quite often. In this tutorial we walk through how to create a simple template editor in PHP.

The process is pretty simple - a form that allows you to either create or edit a current template file and some PHP that handles the submit. It takes in the data from the textarea and pushed it out to the correctly named file. It's a pretty simple setup and it requires that the web server user can write to the files, but it can be a big help when you can't get into the machine otherwise.

0 comments voice your opinion now!
tutorial template editor form browser



Community Events











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


conference PEAR example job developer security release book zend ajax zendframework mysql code PHP5 framework application cakephp releases package database

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