CasperJS由
PHP使用exec()命令调用.在CasperJS执行其工作之后,如检索网页的一部分,如何将检索的数据返回给PHP?
您可以将输出从stdout重定向到数组.
在this页,它说你可以做:
string exec ( string $command [,array &$output [,int &$return_var ]] )
继续说:
If the output argument is present,then the specified array will be filled with every line of output from the command.
所以基本上你可以执行exec(‘casperjs命令这里,$array_here);