我想在服务器上安装cgilib-0.5,cgilib-0.5文件解压在/opt/,我用make,make install 后显示 [root@localhost cgilib-0.5]# make install cc -I. -Wall -O2 -g -c -o cgitest.o cgitest.c cgitest.c: In function `main': cgitest.c:108: warning: implicit declaration of function `strcmp' cgitest.c:116: syntax error before "Library" cgitest.c:129: warning: implicit declaration of function `strlen' make: *** [cgitest...
一个简单的读取并处理表格请求数据的cgilib.pl例子: #!/usr/bin/perl sub readGetData{ # 指定局部变量queryString用以保存和传递函数的参数 local(*queryString) = @_ if @_; # 读取环境变量QUERY_STRING的值赋给变量$queryString $queryString = $ENV{"QUERY_STRING"}; return 1; } sub readPostData{ local(*queryString)=@_ if @_; local($contentLength); # 读取环境变量CONTENT...