警告:proc_open():第 102 行 C:\...\updatedots.php 中的数组中缺少句柄限定符
我正在尝试打开记事本并在 2 秒后关闭它。这是我的代码:
$descriptorspec = array(
0 => array("pipe" => "r"),
1 => array("pipe" => "w"),
2 => array("file" => "logs/errors.txt")
);
// Create child and start process
$child = array("process" => null, "pipes" => array());
$child["process"] = proc_open("notepad.exe > nul 2>&1", $descriptorspec, $child["pipes"]);
知道这个错误是什么意思,是什么原因造成的?