G
G
grenline1231232021-03-18 22:13:32
PHP
grenline123123, 2021-03-18 22:13:32

Headless browser PHP + Phantomjs problem?

I can’t run phantomjs, as I just didn’t try, I didn’t take examples from where, it just doesn’t work for me.

$response = exec('C:\OPS\OSPanel\domains\localhost\libraries\phantomjs\bin\phantomjs.exe C:\OPS\OSPanel\domains\localhost\libraries\phantomjs\bin\parser.js');
echo $response;


parser.js outputs blank page UPD Now infinite page loading
console.log(1);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grenline123123, 2021-03-18
@grenline123123

Problem solved, didn't set phantom.exit() in js script;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question