代码改变世界

随笔分类 -  fcgi开发

另一个官方fcgi实例echo-cpp.cpp

2013-02-27 23:04 by 好动的树懒, 1027 阅读, 收藏,
摘要: http://www.fastcgi.com/devkit/examples/echo-cpp.cpp开发环境:freebsd or linux开发语言:c++代码:#include <stdlib.h>#include <string>#include <iostream>#ifdef _WIN32#include <process.h>#else#include <unistd.h>extern char ** environ;#endif#include <fcgio.h>#include <fcgi_conf 阅读全文

freebsd下fcgi程序例子

2013-02-27 22:58 by 好动的树懒, 1860 阅读, 收藏,
摘要: 开发环境:freebsd or linux 开发语言:c++ 代码: #include <stdlib.h> #include <stdio.h> #ifdef _WIN32 #include <process.h> #else #include <unistd.h> extern char ** 阅读全文

(转)fastcgi简介

2013-02-27 22:50 by 好动的树懒, 295 阅读, 收藏,
摘要: 来源:http://baike.baidu.com/view/641394.htm 百度百科什么是CGICGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。 CGI可以用任何一种语言编写,只要这种语言具有标准输入、输出和环境变量。如php,perl,tcl等什么是FastCGIFastCGI像是一个常驻(long-live)型的CGI,它可以一直执行着,只要激活后,不会每次都要花费时间去fork一次(这是CGI最为人诟病的fork-and-execute 模式)。它还支持分布 阅读全文