Archive for the ‘Programming’ Category

Support for PHP 4 to be dropped

Saturday, July 14th, 2007

There is an announcement on the official PHP website about PHP 4 reaching end of life at the end of this year, with no more development beyond the 31st December 2007. Security patches will continue for a further eight months after this date, but after August 2008 PHP 4 will be no more.

As one can imagine, this decision has caused a strong split of opinion within the PHP community. I suspect that many users will be extremely annoyed by the announcement, even though their applications should work under PHP 5 without any changes. If they don’t, chances are that it’s a problem with their script, although I doubt they will see it like that. On the other hand, GoPHP5 is waving the flag for the ‘move to PHP 5’ group, listing projects and hosts which have pledged to move to PHP 5 by February 2008—although this is something of a moot point now that we know that PHP 4 will be discontinued anyway.

My personal thought on all this is that both the PHP team and web hosting companies are to blame for the slow transition to PHP 5. The latest major version of the software has been out for three years now, yet the PHP team has done very little to push system administrators to upgrade, nor have they provided any major incentives for users to want to move to the latest version and put pressure on their providers to upgrade.. Web hosting companies have also failed to even offer PHP 5 in many instances, leaving users with no option but to continue developing for version 4.

Matt has also weighed in to the debate with his recent post, On PHP. I agree wholeheartedly with his point about the PHP core team killing off a popular product (for all its faults, PHP 4 has undeniably been a success) without thinking about why people haven’t upgraded to PHP 5. This could be laziness, in which case the PHP team needs to take steps to ensure that there are incentives to overcome this, e.g. new features, improved security model and smoother updates.

I think what amazes me the most about all this though is that we really should be looking towards PHP 6 by now, yet PHP 5 still isn’t adopted by the majority of hosting companies and end users. If it’s taken this long to move from 4 to 5, how long will moving from 5 to 6 (which has lots of useful improvements according to Jero) take?

Further information

Ten things you might not know about PHP

Friday, November 17th, 2006

10 things you (probably) didn’t know about PHP

I’ve just come across this useful and somewhat insightful article on Yet Another Web Development Blog. Most of the tips are things that I’ve already used or knew about, but I hadn’t thought about storing IP addresses as integers or checking the DNS record of the domain of an email address before verifying it. The tips are definitely worth a look for anyone who regularly programs in PHP, especially if you write a lot of your own code for running websites (as I do).

PHP Easter Eggs

Saturday, January 14th, 2006

PHP’s “doggie” easter egg via SitePoint

Apparently by appending different query strings to PHP scripts, you can get various “easter egg” images to appear. Rather amusing, although you do wonder why developers bother putting features like these into what is supposedly a serious scripting language.

More Information

Top seven PHP security blunders

Tuesday, January 10th, 2006

There is an interesting article on SitePoint at the moment, entitled Top 7 PHP Security Blunders. It’s lacking detail for most of the security issues raised, but it’s a useful article nevertheless. If it stops just one newbie PHP developer from making a major security blunder then it will have been worth the time spent writing the article, in my opinion.