Jon Lim links to a posting on Site Point Forums that exposes the difference between web application development with PHP and Java. Java uses a centralized approach for much of the application state, whereas PHP doesn’t. The crux of the difference is this:
In J2EE, the java virtual machine does not get re-loaded in between requests. It remains running along side the web server. When a servlet gets initialized, it can service several requests in sequence and can keep some data in memory.
….
PHP does not have the same run time environment. Each request initializes a fresh PHP environment.
While a developer could attempt to imitate Java’s method with PHP, it would prevent quite the challenge.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
