热门关键字:  ubuntu  分区  函数  linux系统进程  Fedora

当前位置 :| 主页>Linux教程>编程开发>PHP>

execute the php-cgi in the thttpd

来源: 作者: 时间:2007-11-16 Tag: 点击:
 modify the libhttpd.c, add the next lines:
(void) my_snprintf(buf, sizeof(buf), "%s%s", hc->hs->cwd, strcmp( hc->origfilename, "." ) == 0 ? "" : hc->origfilename );
envp[envn++] = build_env("SCRIPT_FILENAME=%s", buf);


php-cgi need environment variable SCRIPT_FILENAME to execute the script with the absolute name. php-cgi will print "No input file specified" if it did not find the environment variable SCRIPT_FILENAME or the file name is not absolute.

上一篇:没有了
下一篇:没有了
最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
栏目列表