Home  >  Article  >  Backend Development  >  Let Tomcat parse php_PHP tutorial

Let Tomcat parse php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:45:541202browse

Tools required:
(1) apache tomcat
(2) Quercus

Quercus jar package under web-inf/lib/, put it under $TOMCAT_HOME/lib, modify the $TOMCAT_HOME/conf/web.xml file, and add the following servlet mapping:
Xml code

Quercus Servlet
com.caucho.quercus.servlet.QuercusServlet






Quercus Servlet
*.php


OK, restart tomcat

Add a php page to the previously deployed jsp project, and then access the page
php page, the content is as follows:
Php code
echo "Hello World";
phpinfo();
?>

Author "irfen"

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478644.htmlTechArticleRequired tools: (1) apache tomcat (2) Quercus Quercus jar package under web-inf/lib/ , put it under $TOMCAT_HOME/lib, modify the $TOMCAT_HOME/conf/web.xml file, and add the following servlet mapping:...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php coding_PHP tutorialNext article:php coding_PHP tutorial