您好,我在使用 phantomjs 时遇到了一些问题。我尝试执行一个简单的语句,但我一遍又一遍地得到同样的错误。
exec('../bin/phantomjs --version', $o, $r);
var_dump($r);
print_r($o);
我得到这个:
int(2) Array ( [0] => ../bin/phantomjs: 1: ../bin/phantomjs: Syntax error: Unterminated quoted string )
是什么赋予了?我在 mac 上,phantomjs 有 777 权利。