0
我在ci中创建了一个名为“激励”的模块。我已经写了控制器的功能,在运行PHP脚本background.but它不工作,在codeigneitor的背景下运行脚本?
这是我在控制器
function backgroundrun(){
echo "working";
$command = shell_exec("localhost/new/index.php?module=incentive&view=allIncentive&date=2016-02-29 > /dev/null & echo $!");
echo $out = exec($command);
echo "here";
}
此功能,我想运行
脚本的网址localhost/new/index.php?module=incentive&view=allIncentive&date=2016-03-29
我认为这将有助于'echo file_get_contents(“http://localhost/new/index.php?module = incentive&view = allIncentive&date = 2016-03-29”);' – Tamil