Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/46010479
Quercus is a PHP5 engine developed by Caucho company with Pure java. Published under the GPL based on the Open source license agreement.
Quercus comes with a lot of PHP modules and extensions such as Pdf,pdo,mysql and JSON. You can use this engine to run PHP programs in some Java EE application containers (resin,glassfish, etc.), or in PHP scripts to invoke some of the services such as JMS. Quercus will pre-compile the PHP file into a. java file before executing.
Here are the steps:
1 We put the PHP project as a Web project under WebApps, and built the Web-inf\lib directory inside. Example: webapps\phpdemo\web-inf\lib
2 from http://quercus.caucho.com/. Download Quercus-4.0.37.zip, extract the inside of the Web. Xml into the web-inf below, extract the jar inside and put it under Web-inf\lib.
3 Start Tomcat,
Tomcat's--tomcat simple way to run PHP (episode)