PHP Portlet

While I was surfing the Wiki I found a distress signal coming from a discussion within an empty article. It was a Liferay user calling out for help. Bchan gave me a crash course in PHP portlets and I was on my way. Have no fear Sairam! How to Create a Simple PHP Portlet is now a real article.

Here below is my very first PHP portlet. You might not be that impressed with my PHP coding but I bet you like my snowboard.

 

Blogs
I try it. It works.

But I can't find where to enable the php extensions. Is the php engine built-in ? Which version of php does it support ?
I tried this php portlet on liferay 4.4.0 + glassfish bundle and I got the following exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at com.liferay.util.bridges.php.PHPPortlet.<clinit>(PHPPortlet.java:200)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

Then I manually copied the common logging file in to the applications's WEB-INF/lib directory and it started working.

Shouldn't this file should be automatically added to the application's web-inf/lib directory ?