我正在尝试在后台运行脚本,但它不起作用,这是我正在运行的脚本:
$ddd = "script.php?titulo=".$_REQUEST['titulo']."&descripcion=".$_REQUEST['descripcion']."&accion=".$encrypta->encode('comunicadoPadres')."";
exec("wget -qO- $ddd &> /dev/null &");
如果我直接在浏览器上运行 url,脚本可以工作,但从这个exec()
什么也没发生
wegt
命令仅访问路径位置,如果要使用wget
则无法使用HTTP
脚本路径,则无法编译和运行php脚本
$ddd = "http://domain.com/script.php?titulo=".$_REQUEST['titulo']."&descripcion=".$_REQUEST['descripcion']."&accion=".$encrypta->encode('comunicadoPadres')."";
exec("wget -qO- $ddd &> /dev/null &");