I
I
iandriyanov2012-05-31 17:30:07
linux
iandriyanov, 2012-05-31 17:30:07

Twiste-web-server, how to make php work?

There is a simple server

#!/usr/bin/env python<br/>
<br/>
from BaseHTTPServer import HTTPServer<br/>
from CGIHTTPServer import CGIHTTPRequestHandler<br/>
serve = HTTPServer((&quot;&quot;,7777),CGIHTTPRequestHandler)<br/>
serve.serve_forever()<br/>

It shines the folder, i.e. You can see everything in the parent.
.html on the browser works fine, well, this is logical. How now to force it to execute php?
Naturally, all this is simple, easy. No stress, just do at least <?php print "Hello"; ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
phasma, 2012-05-31
@phasma

Well, actually here is twistedmatrix.com/pipermail/twisted-python/2010-February/021602.html. But why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question