[Twisted-Python] Re: [Twisted-commits] How do I serve PHP-files with twisted.web? Answered.

On Mon, 30 Sep 2002 12:14:00 -0500, phed CVS <phed@twistedmatrix.com> wrote:
How do I serve PHP-files with twisted.web? Answered.
This answer appears to be unnecessarily complex and confusing, when the user could just do "mktap web --path . --allow-ignore-ext" and get the same effect. (You probably want --index index.php too.) Is there any particular reason you answered that way? :) -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |

Glyph Lefkowitz wrote:
How do I serve PHP-files with twisted.web? Answered. This answer appears to be unnecessarily complex and confusing, when the user could just do "mktap web --path . --allow-ignore-ext" and get the same effect. (You probably want --index index.php too.) Is there any particular reason you answered that way? :)
Because it has been asked at least three times. :) Perhaps it could be changed into "how do I create a resource that serves PHP-Files", because the "create webserver"-part is explained a lot better other places. But I just wanted a complete example where just one line could be changed. And, to do this in updateApplication: resource.processors[".php"] = twcgi.PHPScript Would not be saved in the tap, which is why I solved it this way. After all, I think if you're developing this is the info you would be interested in. \\ benjamin bruheim

On Tue, 01 Oct 2002 09:49:50 +0200, Benjamin Bruheim <grolgh@online.no> wrote:
Glyph Lefkowitz wrote:
How do I serve PHP-files with twisted.web? Answered. This answer appears to be unnecessarily complex and confusing, when the user could just do "mktap web --path . --allow-ignore-ext" and get the same effect. (You probably want --index index.php too.) Is there any particular reason you answered that way? :)
Because it has been asked at least three times. :)
If the specific question is the one you're answering, then it's too complex an answer. If people actually want the answer you gave, then the question should be changed :).
Perhaps it could be changed into "how do I create a resource that serves PHP-Files", because the "create webserver"-part is explained a lot better other places.
Maybe it should be two FAQs, if indeed the second one is "frequently" asked (which seems strange to me): "1. How do I create a webserver with Twisted Web that serves PHP files?" and "2. How do I programatically create a webserver resource like the one I get from 'mktap web'?" -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |
participants (2)
-
Benjamin Bruheim
-
Glyph Lefkowitz