[Twisted-Python] Re: [Twisted-commits] How do I serve PHP-files with twisted.web? Answered.
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
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 |
![](https://secure.gravatar.com/avatar/812cc4936ca92a5ad9073f521a32b7fb.jpg?s=120&d=mm&r=g)
Glyph Lefkowitz wrote:
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
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Tue, 01 Oct 2002 09:49:50 +0200, Benjamin Bruheim <grolgh@online.no> wrote:
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 :).
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 |
![](https://secure.gravatar.com/avatar/812cc4936ca92a5ad9073f521a32b7fb.jpg?s=120&d=mm&r=g)
Glyph Lefkowitz wrote:
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
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Tue, 01 Oct 2002 09:49:50 +0200, Benjamin Bruheim <grolgh@online.no> wrote:
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 :).
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