Преглед на файлове

Adding example illustrating how to set custom phantomjs executable path

Jonny Wenmoth преди 11 години
родител
ревизия
4a08348920
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      examples/custom-phantomjs-location.php

+ 8 - 0
examples/custom-phantomjs-location.php

@@ -0,0 +1,8 @@
+<?php
+
+require '../vendor/autoload.php';
+
+use JonnyW\PhantomJs\Client;
+
+$client = Client::getInstance();
+$client->setPhantomJs('/path/to/directory/that/contains/phantomjs/executable'); // Executable file in directory must be called 'phantomjs'