PHP Webserver in Python
How can I make a PHP 5.3 webserver using Python?开发者_开发百科
I know how to make a simple HTTP server, but how can I include PHP?
Thanks.
Do you perhaps mean writing your own implementation of a PHP module for your own webserver? eg, writing something like mod_php but in python for your own home rolled web server? You would have to have a mighty good reason for pursuing that...check out LAMP maybe that will do what you need
After some clarifications at last it came clear that your question was "how to connect PHP to HTTP server"
So, actually you were interested in three letters: CGI.
However I still doubt you will get any good from it.
精彩评论