如何用C编写CGI程序
如何用C编写CGI程序
服务器如何设置
服务器为APACHE1.3.12
问题点数:50、回复次数:2Top
1 楼wwwunix(木易)回复于 2000-08-22 07:40:00 得分 50
用C写CGI程序就和写C程序一样:例如:
main()
{
printf("Content-type: text/plain\n\n");
printf("This is a test.<br>");
printf("Hello,word!<br>");
}
第一个printf一定要写否则不行。Top
2 楼lv_limin(江湖)回复于 2000-08-23 00:13:00 得分 0
谢谢!我以前少写了
printf("Content-type: text/plain\n\n");Top




