Pierre-Alain Joye's Blog: Howto use a single php.ini for cli/cgi with htscanner, use 0.7.0 or later
692189
Pierre-Alain Joye has posted a quick hit to his blog today about using one php.ini file for both a cli and cgi installation of PHP without it throwing errors for htscanner.   Htscanner reports error during module or request init (returns FAILURE), these errors may be fatal and stop the current executions. This behavior is not desired if you use it in a shell ((if you have only one system php.ini for both cli and cgi or if htscanner is compiled statically). This release brings a new ini settings to solve this problem, stop_on_error.   The solution involves changing the htscanner setting to 0 instead of 1 to return a "SUCCESS" message rather than the errors.
313520
In a follow-up to a previous blog post, Alexey Zakhlestin shares a few more thoughts on the project and the proper object hierarchy's going for.   actually, I changed it completely 3 times already in my thoughts. I finally "see the light"(tm) and will implement it on a weekend. I think about converting SCGI-part to a simple "driver" and move all http-related stuff to a separate driver-agnostic set of classes. This way, I would be able to implement FastCGI as anther driver without altering applications. If you have any better ideas - let me know.   He also includes a link to another sample application that uses the functionality to create a pie chart (including some benchmarks) with the help of the eZ components framework.
449834
Sebastian Bergmann has posted the results of some benchmarking on the compilation he's done on the branches of PHP from version 3.0 all the way up to 5.3-CVS.   As people keep asking me for an update to my previous benchmarks (PHP / GCC / ICC Benchmark, PHP 5.1 / GCC Benchmark (Update), and PHP 5.1 Performance, I quickly ran a new benchmark today.   He rendered the results out into a series of charts defining the number of total seconds taken for the compile and how long each of the components took. It's impressive to see how much of a jump there was between the 3.0 series and 4.3.   He also includes his compile settings (and machine information) as well as the numbers for the results if you'd like to graph them out yourself.
732440
The International PHP Magazine has posted results from their latest PHP community poll as voted on by visitors to their site. The question for this poll asked developers what they thought, of the choices on the list, was the most common mistake that PHP developers make.   Coming in at number one by an overwhelming lead was "Not escaping entities and SQL input" (a definite problem indeed) with the next highest option, "Not using a Framework" a full twenty percent lower. The next two options were closer (descending) - "Using old PHP versions" and "No or little use of Object Orientation".   There's a new poll this week for your consideration - this time asking which stage, of the five options, should come first in the development cycle of a typical content management system. Head on over and cast your vote today!
717446
On the Hauser & Wenz blog today, Christian Wenz points out a patched version of the interactive command line PHP client, phpa to work on a Mac OS X machine - phpa-norl.   phpa is an interactive command line shell for PHP by David Phillips. Stefan Fischerlander, usually known as a SEO expert and Perl admirer, has patched phpa for Mac OS X and Windows (the default builds theredo not seem to support a feature required by phpa). The result: phpa-norl. Stefan successfully ran this on OS X, and I could confirm that it runs on Windows, as well   He also mentions some features of the client including a history feature that makes looking back through previous commands simple.
395378
Richard Davey has a quick post noting the update of his WAMP Guide (a step-by-step method for installing Apache/MySQL/PHP on a Windows XP machine).   Just a short entry to let everyone (and the search engines) know that I've updated my comprehensive WAMP guide so it now covers PHP version 5.2.3. I always had a help file on how to upgrade to 5.2.3 at the end anyway, but now that 5.2.3 is officially released I updated the core guide to reflect this.   This tutorial is a "comprehensive guide to installing and running Apache 2.2.4 with PHP 4.4.7 and PHP 5.2.3 on Windows XP. It covers all of the steps in detail with lots of screen grabs so you can follow the process visually."
19207
As Greg Beaver mentions in his latest blog entry, the main website for PEAR, pear.php.net has been mirrored as part of an effort to restructure and "revamp" the PEAR wesbite.   I'm excited to announce the first two mirrors of pear.php.net are now actively mirroring the installer REST files and actual .tgz files of package releases.  They are http://us.pear.php.net (provided by Joshua Eichorn and bluga.net) and http://de.pear.php.net (provided by Christian Weiske).  The option exists at a future date of mirroring the entire website, but this will not be possible without further changes to the infrastructure.   Using these servers is only slightly different than the main site, setting the preferred_mirror setting in your configuration to use one of the above.
758318
In his latest post, Jeff Moore talks about a much needed upgrade to a popular operation system (the Leopard version of Mac OS X) and something that it brought with it as a default - a version 5 installation of PHP (5.2.4 in fact).   His post is a guide to setting up a development environment on your newly upgraded system. He's broken it up into quite a few steps:   Enable Developer Tools Editing Configuration Files Enabling PHP Starting Apache Visiting our Web Site Showing the World Enabling a Personal Website Virtual Hosting Sharing with the World, Part II Installing MySQL Bring the mysql.sock to PHP Where is PEAR? PHP .ini configuration   Don't worry, each of the sections in the list don't have much more than one or two paragraphs under them and they're loaded with links to help you through some of the more detailed points.
41064
Gerd Schauffelberger writes on the PHP-Tools Blog today about the contents of the latest issue from the German PHP Magazine, specifically an article covering the PEAR package HTML_AJAX.   This article's target is (1st) to give a brief introduction to AJAX and how things work from Javascript an PHP side in contrary. Also (2nd) I wanted to show that you actually don't have to muck around with a mess of Javascript (browser compatibility issues and such) because it's it is all done by the Joshua Eichorn's HTML_AJAX framework.    The article doesn't build up an entire application (as Gerd mentions) but it does provide you a good base to work from and gives you a good direction to head from to learn more about this powerful package.
32966
Dave Dash has posted a configuration that he had shared with him for getting nginx and the symfony framework to work happily together.   I almost gave up on nginx and was going to settle on lighttpd or Apache, but I decided to check the symfony list and in minutes Kiril Angov (Kupokomapa) answered with a working nginx configuration. This is why I like the symfony community.   He includes the config in an easy to use/c&p kind of format so you can drop it into your install and get it up and running quick.
313082
P&aacute;draic Brady, looking ahead to the work he will be doing over the next few months, is proposing on his blog about a new Zend Framework component - Zend_Service_Currency.    I did a quick check on what PHP classes are available for the purpose. There's really not a whole lot out there. There's a PEAR class along the lines I need, but it's released under the PHP License and, not to be too argumentative, I prefer non-PEAR solutions where the end-user may have no access to update PEAR.   So since the project is planned to use the Zend Framework, I shot off a mail to the Framework's fw-general mailing list to see if it would be a worthwhile contribution.    He sees that someone else had already opened a proposal for the same idea and decided to join with that group to work up the module. He also links to his original proposal and gives a brief overview of the goals of the package.
693070
Guilherme Blanco is proposing an interesting idea in his new blog entry - adding built in functionality to the PHP core that would allow a developer to register their own custom suprtglobals.   Currently, we deal with a lot of interesting situations of web applications, and some really interesting are the superglobals variables. Seems there will be a change in superglobals soon and that's why I decided to post about it here.   His example of the need for something like this is as an alternative to using the Singleton pattern to work with multiple database connections in an application. His proposal is that, by including this register_superglobal functionality, it would make it easier to share these kinds of connections. He even includes a simple code example of how it might look.
289577
On the Developer Tutorials site today, there's a new tutorial posted that walks you through some of the useful features that PHP's CLI functionality can bring to your system administration.   In this tutorial, I'll show you how to use PHP-CLI, the command line interface for PHP, to get your maintenance under control using the technologies you're already familiar with. I'll also examine some of the By the time you've finished this tutorial, you'll be able to build human-assisted backup systems, automatic report generators.   It's a pretty basic introduction that talks about what the CLI environment is and what sorts of things PHP brings to the table. They include some sample scripts to do things like database cleanup and a method for taking in human interaction via the command line.
646811
Ilia Alshanetsky has an announcement on his blog today about the release of the next candidate for the upcoming PHP 5.2 series - PHP 5.2.0RC5.    After 2 weeks of inaction 5.2.0 final release is finally in sight. A few minutes ago I've released the last (I mean it this time) release candidate of 5.2.0, RC5. If all goes well a week from now 5.2.0 final will be out ready for use. In the meantime I'd like to ask once again that everyone try this RC, which can downloaded from here.   I don't think you'd be able to find any major issues or regressions in this RC, but if you do certainly let me know, if necessary RC6 is not out of the question.    The more this new release is downloaded and tested, the faster we all get PHP 5.2 - so get out there and get testing!   The Windows builds have also already been created courtesy of Edin Kadribasic.
622401
The International PHP Magazine has posted results from their latest poll conducted over this past week asking which, of their given options, is the best helpful hint for creating a web application in PHP.   Two of the options ranked higher than the rest with one (Page/object caching) coming out on top of the other (Don't save performance testing for the end of the project). The remainder of the votes were divided pretty evenly between the last three options: "Use multi result set queries to your database", "gzip compression", and "Tune your web server".   While you're in the polling mood, you should check out this week's new poll that wonders which of their options might be the biggest hindrance to PHP5's adoption in the community.
559035
Michael Kimsal has posted a formal prediction that a patch, created by someone in the community, will emerge making it simple to bridge the gap between PHP4 and PHP5 applications.   Given the high number of shared hosts still running PHP4, the backwards compatibility issues going from 4->5 (yes, there are some!) and the new PHP4 "end of life" date (8/8/8), someone will likely find a way to make these run together, and possibly even charge money for it.   He suggests that many hosts out there would happily pay a sum to get this kind of functionally for their customers. It would provide a solution to customers who just don't understand the force towards PHP5 and would make them (and their PHP4 applications) happier.
731437
Elizabeth Smith has posted a new item to her blog today with information about a PHP-GTK2 framework that she's been working on (and with) called the Callicore Desktop.   Donât look at me like that, I havenât lost my mind. Itâs not really a framework in the traditional MVC web application sense. Instead itâs a group of fairly loosely coupled widgets and classes with an emphasis on clean code.   With the help of several singletons, multiple widgets and a modular structure, the Callicore Desktop makes working with this parts as simple as calling it on the command line (with limited setup). If you'd like to get a look at the current version of the framework, check out the Callicore site or just head straight to the code.