I just found this awesome tip in the Apple SE:

Start a quick webserver from any directory:

python -m SimpleHTTPServer 8000

Is there a way to have this parse php scripts, or is this for html-only sites?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

The SimpleHTTPServer python library, called in that way, will only serve files, and will not interpret PHP (or python, for that matter). However, you can get it to serve whatever you want (including PHP - check out CGIHTTPServer) with some custom python wrapped around it.

link|improve this answer
So, as someone who doesn't know a stitch of python and doesn't really want to learn it right now, the answer is "no"? – eykanal Dec 7 '11 at 3:10
That's a "no", correct. – Bill Weiss Dec 7 '11 at 4:39
Thanks to both of you. – eykanal Dec 7 '11 at 21:20
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.