用 C 語言寫第一個 CGI 程式

CGI 程式設計

第一個程式

環境變數

get 參數

post 參數

常用函數

參數解碼

範例:檔案編輯

Apache 安裝

訊息

相關網站

參考文獻

最新修改

簡體版

English

範例程式:

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[],char *envp[] )
{
  printf("Content-type: text/html\n\n");
  printf("Hello CGI");
}

執行結果

Hello CGI

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License