Archive for September 7th, 2006

DevShed: Managing Standalone Scripts in PHP

DevShed continues their look at standalone PHP scripts (server-side scripting, not on the web) in part two, “Managing Standalone Scripts in PHP” excerpted from the book “Advanced PHP Programming” from George Schlossnagle.

Last week, we began our discussion of PHP standalone scripts. This week, we’ll be talking about child processes, shared resources, signals, and writing daemons.

They jump right in, going first for a look at forking off child processes from the script using the pcntl functionality you’ll need to build into PHP. Resource management is key to working with server scripts, and they show you how to close them out when you’re through. Next up is a brief look at the types of signals that you can send to the child processes, and some good rules to follow for writing daemons in PHP.

Continue Reading · Add comment

Technobabbler.com: making a radar loop with PHP

On the Technobabbler blog, there’s a quick look at their creation of a (weather) radar loop they could view on their cell phone.

I used the great mobile site from the NWS, but it still didn’t give me the effect I wanted. And hey, I’m already filling a database with weather observations and radar images! So I decided to see what it would take to make a custom radar loop that I could get to at any given moment. The Treo can display animated gif files, so that seemed like the most efficient solution. The question is, how do we create an animated gif using PHP?

To answer the question, he found this script (”GIF images into animated GIF with native PHP class”) and used it to create a simple script to grab the GIF images and combine them into a single animated image suitable for viewing in any browser. He includes the script used to generate it as well as an example of the result and how it looks on the phone.

Continue Reading · Add comment

Managing Standalone Scripts in PHP

Last week we began our discussion of PHP standalone scripts. This week we ll be talking about child processes shared resources signals and writing daemons. The second of three parts this article is excerpted from chapter five of the book em Advanced PHP Programming em written by George Schlossnagle Sams ISBN 672325616 ….

(Advertisement) Refurbished and Used Networking Equipment Network Liquidators sells refurbished and used networking equipment for up to 95% off list, with a 1 year warranty. We buy and sell top brands like Cisco, Extreme, Foundry, and more. Call us for best pricing.

Continue Reading · Add comment

Managing Standalone Scripts in PHP

Last week we began our discussion of PHP standalone scripts. This week we ll be talking about child processes shared resources signals and writing daemons. The second of three parts this article is excerpted from chapter five of the book em Advanced PHP Programming em written by George Schlossnagle Sams ISBN 672325616 ….

Wot? No Bandwidth Bills? Your own dedicated data line. Revolutionairy Dedicated Servers from the UK’s largest host - Full remote control inc hardware reset, Private LANs & Instant Online Setup with our unique automated deployment systems. From only £49 pm, find out more….

Continue Reading · Add comment

Pro::PHP Podcast: Interview With Cal Evans

php|architect’s Pro::PHP Podcast has posted their interview with Cal Evans of the Zend Developer Zone on their site (as recorded live last Friday):

Uh Oh…. time to chat with the chattiest character in the PHP blogosphere, formerly the roving reporter and now Editor of Zend’s Dev Zone, Cal Evans. Cal’s got a lot to talk about too. Zend Framework progress, PHP5 Certification, a couple of conferences he’ll be at this year and PHP’s FileMaker pro support?!?

You can grab it directly here and have a listen. Also, be sure to check out the upcoming show with the latest news in all things PHP with Marcus and Sean.

Continue Reading · Add comment