震惊的发现c语言编译的程序能放apache里用浏览器打开
想试着做个网站,按照百度到的东西一步步做,发现c语言编译的exe能放apache里用浏览器打开,这是为什么啊?
#include "raphters.h" START_HANDLER (simple, GET, "simple", res, 0, matches) { response_add_header(res, "content-type", "text/html"); response_write(res, "hello world"); } END_HANDLER START_HANDLER (default_handler, GET, "", res, 0, matches) { response_add_header(res, "content-type", "text/html"); response_write(res, "default page"); } END_HANDLER int main() { add_handler(simple); add_handler(default_handler); serve_forever(); return 0; }
[此贴子已经被作者于2020-1-20 10:21编辑过]