从shell_exec调用时,PhantomJS进程不会退出

时间:2014-08-27 15:26:57

标签: php phantomjs

我正在执行phantomjs命令,通过php shell_exec为网站截取屏幕截图,但即使在截屏后,该过程也不会退出。

我正在通过capturejs执行PhantomJS,如下所示:

capturejs --ignore-ssl-errors yes --uri "google.com" -o "test.png" --viewportsize 1280x800

截图拍摄后,capturejs代码会调用phantom.exit()

注意:我正在为谷歌截屏,因此没有语法错误。

0 个答案:

没有答案
相关问题