摘要: 本系列的前提是ngix已经配置好.一. 下载安装datatables.官网上给出了两种方式(http://datatables.net/manual/installation#Including-Javascript-/-CSS),我们选择下载到本地的方法.1. 到官网下载:http://datat... 阅读全文
posted @ 2014-11-27 22:37 helloweworld 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 一. cgi用前面小节的req_resp.cpp, 这里略去cgi的编译和部署.二. 下面的几个文件在同一个目录.1. index.py 增加两处:(1) (r"/index.py/angularjs_cgi", AngularjsCgiHandler)(2)class AngularjsCgi... 阅读全文
posted @ 2014-11-27 19:51 helloweworld 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 在fast-cgi源码的examples文件夹下有很多例子, 下面给出echo例子, 编译运行方法同上几节.fast-cgi的API google之.http://fossies.org/dox/fcgi-2.4.0/fcgiapp_8h.html#a32f6950798054a70404ce24c... 阅读全文
posted @ 2014-11-27 18:46 helloweworld 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 接上节, 上节只有响应---cout, 本节获取地址栏的QUERY_STRING, 然后响应.一. req_resp.cpp.#include #include #include #include "fcgio.h"#include "fcgi_config.h"using namespace st... 阅读全文
posted @ 2014-11-27 18:09 helloweworld 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 接上几节, 本节写有请求和响应的demo.一. myecho.cpp如下:#include #include #include "fcgio.h"#include "fcgi_config.h"using namespace std;int main (void){ int count = 0... 阅读全文
posted @ 2014-11-27 15:19 helloweworld 阅读(470) 评论(0) 推荐(0) 编辑