 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Mark Karpeles' Blog: proctitle a new step for pinetd
by Chris Cornutt January 22, 2009 @ 11:12:17
If you've ever worked with forking processes in PHP, you know things can get a little difficult when you have more than one process going at a time. Identification can become a hassle, especially if you need to kill one off because of performance issues. If you've found yourself in this spot before, you might want to check out this update Mark Karpeles has made to his pinetd project to allow for naming of those forked processes.
Ever wanted to give meaningful names to your processes when you pcntl_fork() with PHP ? proctitle is the extension you're looking for!
Adapted from bug report #29479 and code initially wrote by Midom for Wikipedia, the proctitle extension allows for a process to change its own displayed title in the system's process list.
The extension (seen in action here) is an interface for making different sorts of daemons, including the ability to give them names. You can check out the project here.
voice your opinion now!
pinetd proctitle extension daemon tcp udp name process fork
Doug Hill's Blog: 60 Days What is it?
by Chris Cornutt December 24, 2008 @ 12:33:35
Doug Hill has proposed a new project that he hopes to get the community behind - 60 Days:
60 Days is an idea I had while trying to decide what to do with the domains I have sitting around doing nothing - (well nothing but being a nagging reminder that I'll never have time for every idea that pops into my head, and that domain names cost money to keep).
The goal of the project is to take a domain you're not currently using (and you know you have some out there) and making something - a "real world project" - on it in 60 days. the catch is that, for each domain you use for the effort, it has to be a different PHP framework. Keep an eye out for the January 1 launch date for more details.
voice your opinion now!
sixty days project effort domain name framework different realworld
David Otton's Blog: Stupid PHP Tricks Illegal Variable Names
by Chris Cornutt August 22, 2008 @ 13:47:52
David Otton has shared another of his "stupid PHP tricks" on his blog today. This one looks at illegal variable names that don't match the "can't start with a number" rule the manual points out.
A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: '[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*'
Technically, you can get around this in two different ways - variable varaibles and the more complex notation with curly braces. He points to the compact function for proof that they're set.
voice your opinion now!
variable trick illegal name compact curlybrace
DevShed: Retrieving Information on Selected Files with a PHP 5 File Uploader
by Chris Cornutt March 27, 2008 @ 09:31:04
DevShed has continued their series (here's part one) looking at the use of file uploading in your PHP scripts. They build on that foundation and add in some more useful features this time:
The initial script in the first tutorial of this series lacked some important features, such as the implementation of an effective error handling module and the ability to check the MIME type and size of the file being uploaded. In this second installment of the series, I'm going to improve the logic of the script from the first tutorial to provide it with the capacity to retrieve useful information concerning the entire file uploading process.
They look back at the previous tutorial to remind you of some of the concepts and then move on to show you how to get information about the file (like the MIME type, name and size of the uploaded file). The last page is just the full source code for the cut and pasters out there.
voice your opinion now!
tutorial php5 file upload information mime name size
|
Community Events
Don't see your event here? Let us know!
|