PHPlet is a application Server written in PHP that serves PHP servet. PHPlet are similar to Java Servlet as they implements the init(), service(), destroy() methods. The lifecycle of PHPlet is the same of servlet. Code: PHP 4.0