CasperJS将数据传回PHP

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);

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...