开发者

Python equivalent of php's virtual()

Do you know if there is a p开发者_如何学编程ython equivalent of php's virtual() ?

My configuration is python, djanogo, mod_wsgi, apache

Trying to include a script that has only examples for php using the above include and also needs to be included in all website's pages.

Thanks

LE: I'm including a .cgi script


The only reference to this I see is

http://www.modpython.org/pipermail/mod_python/2004-January/014834.html

Which states In theroy you can use the Apache 2.x chain handlers feature, where more than one content handler can process the request. I say in theroy because I've read about it, but never tried it =)

From the PHP Manual, virtual() is an Apache-specific function which is similar to <!--#include virtual...--> in mod_include. It performs an Apache sub-request . . . This function is only supported when PHP is installed as an Apache module.

Here is the link for info about Apache Filters, which is what is meant by "chain handling":

http://httpd.apache.org/docs/2.2/filter.html

The document should be able to be processed by mod_include after it's output from mod_wsgi (or before, if that's what you want).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜