Are you going to ZendCon? Don’t miss UnCon!

If you’re heading out to California for ZendCon in a few weeks, don’t miss ZendUnCon. Keith Casey is heading up this unconference, which already has several interesting talks. I’m now kicking myself for not signing up for ZendCon :(

DC PHP ‘08 Highlights

Earlier this week, we had the 2008 DC PHP Conference at George Washington University. A lot of new faces showed up this year and we had quite a few speakers from the local community. Here are some of the sessions I found particularly interesting:

Automated Unit Testing. Mike Lively presented PHP Unit, which I will definitely be using the near future. His presentation on Monday morning was very helpful and made Unit Testing seem much more approachable. He had an afternoon session as well with more PHP Unit tricks (like mock objects and database testing) that I’ll have to look into on down the road.

Fed Up of Framework Hype? Tony Bibbs had a lot of straight-talk about how to choose a framework, why you might want one, and when you could stand to roll your own. He brought up the fact that you need to keep is flexible enough so that your highly talented programmers can stay productive, while keeping it consistent enough for less experienced coders.

SPL Iterators. A lot of Eli White’s presentations I’ve previously seen have been about scaling challenges he’s worked on at Digg. He seemed just as excited to talk about beautiful code :). One of his samples was so short and succinct, I ended up tweeting (forgive the 140 character formatting) it.

Security Centered Design. In his own words, Chris Shiflett hijacked a security talk to cover User Experience. However, he did a good job of tying everything back to security; people have certain expectations for how a web application should behave when they’re logged in. He also plugged myVidoop: the secure, passwordless OpenID provider that some friends of mine work for :).

Also, Keith Casey moderated an IDE/text editor panel. He asked a good set of questions and fortunately there was no physical violence, or even shouting. :D

This was also my first conference where Twitter was out in full force, except when it was down early on Monday morning. You can catch up on most of the tweets here.

PHP TestFest

The PHP/QA team has announced TestFest. I’m trying to organize an event in the DC area, any takers? Post to the list or add a comment here if you’re interested.

PHP + camping = PHP Appalachia

PHP Appalachia 2008 will be held sometime this September (thanks to Keith for the tip). It’s in the planning stages and deposit money is needed to make it happen, so contact Elizabeth Naramore at elizabeth _at_ naramore _dot_ net to pitch in.

Definitely my kind of conference :D

UPDATE: here are the official details.

Widget DevCamp Wrapup

Quick highlights from Widget DevCamp DC this past weekend:

  • Zvi Band did a presentation on creating Facebook Applications. When he was finished with his presentation, he created a Facebook App from scratch in PHP and FBML! It gave me a few ideas that I probably won’t get around to doing for a few months.
  • We had a roundtable discussion on making money with widgets. Some people proposed including Google ads, but others mentioned that this strategy tends not to work so well for such a small content set. It seems that the most viable route for “business widgets” is to use them for brand reinforcement.
  • Alex Eagle demoed an application (based on Metro’s website) he wrote for Google’s Android project during DevCamp. While there aren’t any Andriod capable phones out yet, Google has the dev environment available with a phone emulator. There’s built in support for GPS, if you have a capable device. Looks very promising, but what will Apple’s iPhone kit offer? We shall see…

Overall, Widget DevCamp was much more relaxed and open ended than last summer’s BarCamp. We had a smaller crowd and more flexible schedule. I personally think we could have done the session planning on the same day: we did this during a Friday evening happy hour instead. The time constraints of doing everything on the same day keep things moving and prevent talks from dragging too long. However, I definitely enjoyed it and I’m looking forward to the next camp hitting DC: eDemocracyCamp.

A website resolution you can keep

If you run a website, here’s a resolution you can keep: make sure your host is up to date. This is something that only takes a few minutes to check and can help you avoid hacker-induced headaches. With PHP being the most popular programming language used on the web, chances are your site uses it. You’re definitely using PHP if you use popular programs such as Joomla!, Drupal, or Wordpress. Even if you keep these programs up to date with the latest patches, your site can still be at risk if your host doesn’t keep PHP itself updated.

If you’re running Joomla! or Drupal, checking your current PHP version is easy. In Joomla! 1.0.x, log into the administrator backend and go to System > System Info. The PHP version will be listed on this screen as well as under the PHP Info tab. In Drupal, use your admin login, then go to Administer > Logs > Status Report.

Aside from this software, there are other ways you can get the PHP version number. Most shared hosts often give you a control panel where you can log in and manage your account. If your host offers CPanel, the PHP version number will usually be displayed on the front page in the left column.

As a last resort, it’s easy to create a phpinfo() page you can use to get the version information. Open up a plain-text editor such as Notepad or TextEdit and add the following code:

<?php
phpinfo();

?>

Save this file as version.php (or anythingyouwant.php) and upload it to your web server using FTP to you web root directory. Then go to http://www.yoursite.com/version.php. Delete version.php from your server right away: you just want it to be available for a moment so you can get the information.

You now have your PHP version number. So now what?

As of this writing, the current version of PHP is 5.2.5. If this is the version you have, congratulations! Your host is up to date with the latest stable copy of PHP there is. If you have a version of PHP that starts with 5 but isn’t the latest, check with your host to see if they’re in transition. A lot of hosts set aside some servers with PHP 5 when it first came out in July of 2004 for testing purposes. You might be on one of these servers.

If your PHP version is 4.4.74.4.8, your host has the latest stable version of PHP 4. Ask and see if they have a plan in place for upgrading your account to PHP 5. If your host is running a version of PHP earlier than 4.4.7, look for a new hosting provider immediately: your host is at least 7 months behind in applying security patches. Don’t count on them keeping you up to date in the future, they’ve already failed you.

As of this past Monday, no new versions of PHP 4 will be released and it is officially obsolete. On August 8th, the PHP team will not even release security updates for version 4.

UPDATE: the PHP team released 4.4.8 the day after I posted this. The switch from .7 to .8 represents some security patches. It is not considered an entirely new version of PHP; everything should still be backwards compatible. If you are running 4.x.x, make sure your host upgrades you 4.4.8 promptly.

Aside from keeping up to date with software that’s being actively developed, there are other reasons to move to PHP 5. It performs faster and has new features your friendly open source programmers desperately want to use. The Joomla!, Drupal, and Wordpress teams have all avoided writing code that only works on PHP 5 to make sure that you can run their software. Now is the time to return the favor and go with PHP 5!