I'm using a tornado framework to host an html project and wish to incorporate some php functionality (pretty much so I can submit and handle forms without refreshing the page).
In my efforts, I have discovered that php will not render at all, so I whipped up a stub viewable through http://localhost/static/test.php
. Upon viewing the source code through inspect element, it appears as though the php code has been commented out...
Anyway I'm just wondering if anyone has come across this issue and if so, how they overcame it. Is it just that PHP and Tornado do not agree with one another?
(Indeed, PHP is installed and functional on this machine. The expected output is observed upon executing the php test.php
command in Terminal.
Tornado is a Python web framework, it is intended for application development using Python. If you want a web server that executes PHP, then Tornado isn't the right solution, I'd recommend Apache or another web server that's well-suited to executing PHP applications.