custom-phantomjs-location.php 243 B

12345678
  1. <?php
  2. require '../vendor/autoload.php';
  3. use JonnyW\PhantomJs\Client;
  4. $client = Client::getInstance();
  5. $client->setPhantomJs('/path/to/directory/that/contains/phantomjs/executable'); // Executable file in directory must be called 'phantomjs'