PHP

The first release candidate of phpSysInfo 3.0 will soon be available for download.

This is the first new major release in over 5 years, and it includes a whole new interface.

phpSysInfo 2.5.4 was released yesterday, to fix a security issue.

The latest release of phpSysInfo can be downloaded here.

One of the new wonders in PHP 5.2 is the filter extension. This extension has just seven function, but still provides an extremely powerful way of handling user input.

One of my most popular posts is one from 2005 about regenerating session id's in PHP.
Because of this I thought it was about time I wrote an updated post about this topic.

Why should I regenerate the session ID?
One reason. To prevent session hijacking.
Session hijacking is when a hacker get to know a user's session ID, and uses it to pretend he is that user.

I was wondering of there was an smarter way to print the whole alphabet in PHP than just creating an array containing all off the letters by my self.

I present to you, the range() function.

Creating XML files with PHP using SimpleXML is really easy, and elegant.

To create a SimpleXML object from a string, I use the following code.

$xml = simplexml_load_string("<?xml version='1.0'?>\n<phpsysinfo></phpsysinfo>");

From there it's really easy to expand.


$xml = simplexml_load_string("<?xml version='1.0'?>\n<phpsysinfo></phpsysinfo>");
$generation = $xml->addChild('Generation');
$generation->addAttribute('version', PSI_VERSION);
$generation->addAttribute('timestamp', time());

Today PHP.net writes:

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be discontinued.

It was announced at drupal.org today, that Drupal 7 will be PHP 4 incompatible. This is a huge decision to take, since it will make it impossible for many to run Drupal 7.
But in my opinion it's about time.

Dropping support for PHP 4 in such a big project as Drupal is a great kick in the ass for the PHP community to upgrade to PHP 5.

PHP 5 is three years old now, and way to many is using PHP 4 that was released seven years ago.

Just to, I don't know.. brag? I just wanted to tell the world that my first patch was commited to Drupal core yesterday. What a nice feeling.

Yay! Finally my Drupal Pro Development book arrived, and I must say; It's great! So far.

Drupal really is a great CMS, or in fact; framework.
GO Drupal!