Answer the question
In order to leave comments, you need to log in
How to return object value from JS to PHP via exec + phantom.js?
Good day, colleagues.
The essence of the question is as follows, let's say there is a js file:
var webPage = require('webpage');
var page = webPage.create();
page.open('https://vk.com/', function (status) {
var cookies = page.cookies;
phantom.exit();
});
$command = 'js\phantomjs.exe ' . 'src.js';
exec($command, $output);
var_dump(($output));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question