Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP-CGI未在windows中加载路径_Php_Windows_Cgi_Environment Variables_Lighttpd - Fatal编程技术网

PHP-CGI未在windows中加载路径

PHP-CGI未在windows中加载路径,php,windows,cgi,environment-variables,lighttpd,Php,Windows,Cgi,Environment Variables,Lighttpd,我有一个运行lighttpd并使用PHP和CGI的windows Web服务器。以前我在使用Apache时没有使用CGI,我注意到了一些东西 使用php exec命令时,它用于从Windows%PATH%环境变量加载所有内容。然而,现在我的新设置似乎不是这样 让我举个例子。 在旧的设置下,我可以调用execping google.com;那就行了 但是现在这不起作用,但是如果我调用exec:\windows\system32\ping google.com;这确实有效 有什么想法吗?哪个wind

我有一个运行lighttpd并使用PHP和CGI的windows Web服务器。以前我在使用Apache时没有使用CGI,我注意到了一些东西

使用php exec命令时,它用于从Windows%PATH%环境变量加载所有内容。然而,现在我的新设置似乎不是这样

让我举个例子。 在旧的设置下,我可以调用execping google.com;那就行了

但是现在这不起作用,但是如果我调用exec:\windows\system32\ping google.com;这确实有效


有什么想法吗?

哪个windows用户运行lighttpd服务?该用户需要配置其路径,并授予该用户访问c:\windows的权限\system32@mhoofman%PATH%是一个系统变量,在所有用户之间共享…如果您打印\u r$\u服务器;其中是否设置了路径键?还可以获取env'PATH';?另外,如果打印GetCWD;,会发生什么情况;?你在做C:驱动器吗?