Ver Fonte

Adding example illustrating how to set custom phantomjs executable path

Jonny Wenmoth há 11 anos atrás
pai
commit
4a08348920
1 ficheiros alterados com 8 adições e 0 exclusões
  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'