C语言编写cgi程序hello world
来源:互联网 发布:rap编曲知乎 编辑:程序博客网 时间:2024/05/18 08:49
安装apache服务器,配置httpd.conf文件如下:
# "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin" should be changed
to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
# Options None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .exe .pl .cgi //运行.exe/.pl/.cgi程序
Example:
#include "stdafx.h"
#include "stdlib.h"
int main(int argc, char* argv[])
{
printf("Content-Type:text/html; charset=gb2312;\n\n");//后面必须加两个回车
printf("<html>");
printf("<body>");
printf("hello world!");
printf("</body>");
printf("</html>");
return 0;
}
0 0
- C语言编写cgi程序hello world
- 编写第一个C语言程序-Hello World
- Linux下编写第一个c语言程序hello world
- C语言编写CGI程序
- C语言Hello World程序
- LINUX C编写一个hello world!程序
- 使用c语言编写cgi程序
- 使用c语言编写cgi程序
- c编写hello world
- 最小的C语言Hello,world程序
- C语言学习一hello world程序
- IOS学习笔记04---编写第一个C语言程序-Hello World
- 6个变态的C语言编写“hello world”程序的解释(1)
- 6个变态的C语言编写“hello world”程序的解释(2)
- 6个变态的C语言程序编写“hello world”(3)
- 39种语言编写的Hello World程序
- C语言hello world
- C语言Hello world
- greenDao 3.X 的使用简析
- 设计模式——命令模式
- GUI
- activity的退出功能
- 浏览器后退时重置input值
- C语言编写cgi程序hello world
- linux内核线程 [实现2]
- Codeforces 672D Robin Hood【思维+二分】这题思路有点劲啊
- angular.module()
- C语言字符串中大小写字母转换
- jquery笔记:load, $.get, $.getJSON,$.getScript,$.post,serialize(),serializeArray
- 在Ubuntu 14.04 64bit中永久添加DNS的方法;虚拟机与windows互相都可以ping通,但是ubuntu 就是ping不通www.baidu.com;找了N久,最后找到有效的办法
- React-Native初接触
- 设计模式——责任链模式