I'm trying to use php-phantomjs
, install it using composer:
($ composer require "jonnyw/php-phantomjs:4.*")
The installation was successful but when I try to use it, with the basic example that comes in the page of: jonnnnyw
I'm getting the following error:
PHP Fatal error: Uncaught exception 'JonnyW \ PhantomJs \ Exception \ InvalidExecutableException' with message 'File does not exist or is not executable: /bin/phantomjs.exe'.
I have tried with many solutions like:
$client->getEngine()->setPath('/path/to/phantomjs');
chmod 777
etc without managing to solve it.
I am using it on a Dedicated Server with CentOS 6.7
I hope someone can help me, thanks.