 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Developer Tutorials Blog: Running background processes in PHP
by Chris Cornutt July 18, 2008 @ 11:18:21
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.
voice your opinion now!
process background exec parameter mysql session track
Nessa's Blog: Using PHP to Display Version Info (I and II)
by Chris Cornutt October 19, 2007 @ 11:23:00
Nessa has two posts that talk about how to use PHP to display the versions of software running on the local machine.
I've been working on this application for work that does some simple server reporting, part of which involves displaying the versions of major software running on the machines. [...] I need to be aware of this to make sure that customers are being moved to servers with compatible versions. It's also good in tracking and planning upgrades.
In the first post she recommends using the exec function in PHP to run system commands to get things like the cpanel version, python version and what perl you have installed.
Part two shows a little bit different way to get some of the same information - using the data in the /proc/version file as a single resource to get OS information.
voice your opinion now!
display version information exec proc version file display version information exec proc version file
|
Community Events
Don't see your event here? Let us know!
|