Comparing PHP with J2EE

While attending a course on Advanced Java, I thought I can do all these things with PHP as well. Then by go for such a heavy weight option like J2EE.
I search on net revealed the real differences. I will give a detailed description later. As of now, we can note that J2EE offers features like transaction management, database connection pooling etc. which are not present in PHP. PHP is lightweight, easy to learn, and gives good performance only for small and mid size applications. For large applications, its J2EE that rules.