 | News Feed |
Sections
Community Events
Don't see your event here? Let us know!
|
| feed this: |  |
Developer Tutorials Blog: Running background processes in PHP
posted Friday July 18, 2008 @ 11:18:21
voice your opinion now!
BY CHRIS CORNUTT
New on the Developer Tutorials blog today is this look at handling background processes from your PHP script:
You've checked and double checked the integrity of user input, and you're doing some serious processing. There's only one problem: it's too slow. There's a simple solution: forking your processing script, and running the code as a background process asynchronously. It can email your user when it's done: they'll wait. In this tutorial, I'll show you how to get started with background processes in PHP.
Akash gives examples of the three keys to background processes - starting the script via an exec, talking to the process by passing additional parameters and including code to monitor the state of the background process via something like a MySQL "sessions" table that the script writes to.
tagged with: process background exec parameter mysql session track
Zend Developer Zone: Decorators with Zend_Form
posted Monday May 05, 2008 @ 12:57:34
voice your opinion now!
BY CHRIS CORNUTT
On the Zend Developer Zone there's a new tutorial (by Matthew Weier O'Phinney) covering the use of decorators with the Zend_Form component of the Zend Framework.
One point of flexibility [Zend_Form] offers has proved to be a pain point for many developers: decorators. This tutorial aims to shed some light on decorators, as well as provide strategies for creating your own decorators and combining them in creative ways to customize the output your forms generate.
Matthew starts with a little background behind the component to help you find your way around. Building on this, he shows how to use some standard output decorators and how to create decorators of your own. His example shows how to create a set of grouped checkboxes.
tagged with: decortor zendform tutorial background example
Mikko Koppanen's Blog: Fill patterns
posted Tuesday April 29, 2008 @ 15:24:50
voice your opinion now!
BY CHRIS CORNUTT
Mikko Koppanen has a quick post today showing how to use PHP and Imagick to create an image of text filled with another image layer behind it:
The fill pattern is used to annotate text but the named pattern could also be used to fill any shapes that allow fill to be specified (include circles, ellipses, rectangles, polygons etc etc).
His example is pretty simple (with a "Hello World!" output) that pulls in the background image, creates the composite layer over it, adds the text to it and sets the fill to the background image's layer. The whole this is wrapped up and output as a PNG file.
tagged with: fill pattern imagick tutorial example png background image
Ben Ramsey's Blog: A Community of Diverse Backgrounds
posted Friday September 29, 2006 @ 07:41:30
voice your opinion now!
BY CHRIS CORNUTT
Ben Ramsey has posted "live" from the PHP Appalachia (un)conference on his blog today, and talks about the "community of diverse backgrounds" that's come up there at the conference.
To me, it's always very interesting to hear to the pre-PHP stories of other PHP programmers-the days before they programmed in PHP, what they did and how they came to call themselves PHP programmers. The stories vary greatly from programmer to programmer, and almost none begin with: "I was working toward a degree in computer science …."
In fact, the more people I talk with, the more I'm convinced that the typical PHP programmer, in fact, sort of got to where they are by an odd arrangement of life circumstances we call coincidences. Almost none elected to be where they are, but nearly all enjoy the work they do, many to a great degree of passion.
He talks about the conversation serveral attendees had, mentioning some of their backgrounds (anything from marine biology to organizational behavior).
tagged with: diverse background developer phpappalachia2006 unconference diverse background developer phpappalachia2006 unconference
|