Required tools:
(1) apache tomcat
(2) Quercus
Put the jar package in web-inf/lib/in the $ TOMCAT_HOME/lib directory, modify the $ TOMCAT_HOME/conf/web. xml file, and add the following servlet ing:
Xml Code
<Servlet>
<Servlet-name> Quercus Servlet </servlet-name>
<Servlet-class> com. caucho. quercus. servlet. QuercusServlet </servlet-class>
<! --
<Init-param>
<Param-name> database </param-name>
<Param-value> jdbc/test </param-value>
</Init-param>
-->
<! --
<Init-param>
<Param-name> ini-file </param-name>
<Param-value> WEB-INF/php. ini </param-value>
</Init-param>
-->
</Servlet>
<Servlet-mapping>
<Servlet-name> Quercus Servlet </servlet-name>
<Url-pattern> *. php </url-pattern>
</Servlet-mapping>
OK. Restart tomcat.
Add a php page to the previously deployed jsp project.
Php page with the following content:
Php code
<? Php
Echo "Hello World ";
Phpinfo ();
?>
Author "irfen"