[英]exec command not running on linux hosting
The following code is working on localhost xampp windows, but when i put it online godaddy shared linux hosting its not working. 以下代码在localhost xampp Windows上运行,但是当我将其在线放置时,godaddy共享的Linux托管它无法正常工作。 exec is working as i tries exec('whoami') and it outputs my account id, but the following exec command is not executing.
我尝试执行exec('whoami')时exec正在工作,并且它输出我的帐户ID,但以下exec命令未执行。
is there any changes i need to make it work? 我需要进行任何更改才能使其正常工作吗? please guide.
请指导。
$cmd = 'php file.php';
if (substr(php_uname(), 0, 7) == "Windows"){
pclose(popen("start /B ". $cmd, "r"));
}
else {
exec($cmd . " > /dev/null &");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.