Our examples work with any recent version of PHP
Archive - Originally posted on "The Horse's Mouth" - 2013-01-01 13:49:58 - Graham EllisI've been involved with PHP for a very long time, and seen the language grow and mature over the years. Which, does not mean that the older examples are no longer relevant. However, some of the examples have been labeled with ".php4" extensions - to show that they would not work under PHP3 - and those extensions have in themselves made the examples look very dated indeed. Ironically, all PHP scripts ".php4" have been running on PHP version 5 on our server for years ... it's just the URLs, established with the search engines and included in the customer's printed note sets which have been out of date.
And so in some quieter moments over the past couple of weeks, I've been updating extensions from ".php4" to ".php", looking to redirect pages as appropriate to avoid them being lost to the search engines, and checking large numbers of links. Please do let me know if you find any links to broken examples - this web site wasn't originally set up using "test driven development" so I don't have any easy tools to hand to check out all my changes. Indeed, it's at times like these that our own site provides an eloquent demonstration of how not to write a site that's easily tested and upgraded!