python for cgi
2009-09-09 17:20
204 查看
First when using "print" to output information to browser, the first line must be "Content-type: text/html". the value of type could be other file formats that browser can parse.
The second thins should be noted is that: the first line of python should be “#! python_path/python.exe -u" to print out to web-server.
or
Add "ScriptInterpreterSource Registry" to the bottom of Apache/conf/httpd.conf
and maybe you should to add:
SetEnv PYTHONUNBUFFERED 1
PassEnv PYTHONPATH
The second thins should be noted is that: the first line of python should be “#! python_path/python.exe -u" to print out to web-server.
or
Add "ScriptInterpreterSource Registry" to the bottom of Apache/conf/httpd.conf
and maybe you should to add:
SetEnv PYTHONUNBUFFERED 1
PassEnv PYTHONPATH
相关文章推荐
- 【Python】 for, list_comprehension, map_function, generator_expression效率比较
- python for 语句
- python工具pip加速For windows
- Apache+CGI+python网站构建学习资源集
- virtualenv (isolated virtual environment) for python runtime
- python for ice入门(2)
- leetcode Search for a Range python
- Cross Compiling Python for Embedded Linux
- python:循环(while、for)
- python for循环列表remove操作
- python练习-for in str
- Python 循环语句(while, for)
- window下如何配置apache Http服务器使其能运行python cgi脚本
- python kivy for GUI design
- Python-CGI基础教程地址收集
- EditPlus for python
- 安装 Scrapy for Python2.7
- @property for Python
- Python2.7: CGIHTTPServer使用案例及官方文档翻译
- Caffe for Python 官方教程(翻译)