|
|
@@ -3,8 +3,8 @@
|
|
|
<channel>
|
|
|
<title>PHP PhantomJs</title>
|
|
|
<description>Run PhantomJS scripts through PHP</description>
|
|
|
- <link>/</link>
|
|
|
- <atom:link href="/feed.xml" rel="self" type="application/rss+xml" />
|
|
|
+ <link>http://jonnnnyw.github.io/php-phantomjs/</link>
|
|
|
+ <atom:link href="http://jonnnnyw.github.io/php-phantomjs/feed.xml" rel="self" type="application/rss+xml" />
|
|
|
|
|
|
<item>
|
|
|
<title>Introduction</title>
|
|
|
@@ -60,7 +60,7 @@ code etc.</li>
|
|
|
|
|
|
<span class="nv">$ </span>composer require <span class="s2">&quot;jonnyw/php-phantomjs:3.*&quot;</span></code></pre></div>
|
|
|
|
|
|
-<p>If you would like to use another installation method or would like to see more detailed installation instructions, see the <a href="/installation.html">installation</a> documentation.</p>
|
|
|
+<p>If you would like to use another installation method or would like to see more detailed installation instructions, see the <a href="http://jonnnnyw.github.io/php-phantomjs/installation.html">installation</a> documentation.</p>
|
|
|
|
|
|
<h2 id="basic-usage">Basic Usage</h2>
|
|
|
|
|
|
@@ -113,12 +113,12 @@ code etc.</li>
|
|
|
<span class="c1">// Send the request</span>
|
|
|
<span class="nv">$client</span><span class="o">-&gt;</span><span class="na">send</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$response</span><span class="p">);</span></code></pre></div>
|
|
|
|
|
|
-<p>For more detailed examples see the <a href="/usage.html">usage</a> section, or to create your own custom scripts check out the <a href="/advanced.html">advanced</a> documentation.</p>
|
|
|
+<p>For more detailed examples see the <a href="http://jonnnnyw.github.io/php-phantomjs/usage.html">usage</a> section, or to create your own custom scripts check out the <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html">advanced</a> documentation.</p>
|
|
|
|
|
|
</description>
|
|
|
<pubDate>Mon, 28 Jul 2014 00:00:00 +0100</pubDate>
|
|
|
- <link>/introduction.html</link>
|
|
|
- <guid isPermaLink="true">/introduction.html</guid>
|
|
|
+ <link>http://jonnnnyw.github.io/php-phantomjs/introduction.html</link>
|
|
|
+ <guid isPermaLink="true">http://jonnnnyw.github.io/php-phantomjs/introduction.html</guid>
|
|
|
</item>
|
|
|
|
|
|
<item>
|
|
|
@@ -238,8 +238,8 @@ code etc.</li>
|
|
|
<p>Make sure the components are in your include path and that the PhantomJS executable is installed to your projects bin folder as mentioned in the <a href="#custom-installation">Custom Installation</a> section.</p>
|
|
|
</description>
|
|
|
<pubDate>Sun, 27 Jul 2014 00:00:00 +0100</pubDate>
|
|
|
- <link>/installation.html</link>
|
|
|
- <guid isPermaLink="true">/installation.html</guid>
|
|
|
+ <link>http://jonnnnyw.github.io/php-phantomjs/installation.html</link>
|
|
|
+ <guid isPermaLink="true">http://jonnnnyw.github.io/php-phantomjs/installation.html</guid>
|
|
|
</item>
|
|
|
|
|
|
<item>
|
|
|
@@ -258,7 +258,7 @@ code etc.</li>
|
|
|
<li><a href="#custom-run-options">Custom Run Options</a></li>
|
|
|
</ul>
|
|
|
|
|
|
-<p>For more advanced customization or to load your own PhantomJS scripts, see the <a href="/advanced.html">advanced</a> documentation.</p>
|
|
|
+<p>For more advanced customization or to load your own PhantomJS scripts, see the <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html">advanced</a> documentation.</p>
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
@@ -421,7 +421,7 @@ code etc.</li>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
|
-<p>If the response contains a status code of 0, chances are the request failed. Check the request <a href="/troubleshooting.html#how-to-i-debug-a-request">debug log</a> for more detailed information about what may have gone wrong.</p>
|
|
|
+<p>If the response contains a status code of 0, chances are the request failed. Check the request <a href="http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html#how-to-i-debug-a-request">debug log</a> for more detailed information about what may have gone wrong.</p>
|
|
|
|
|
|
<h2 id="screen-captures">Screen Captures</h2>
|
|
|
|
|
|
@@ -561,8 +561,8 @@ code etc.</li>
|
|
|
<p>See the <a href="http://phantomjs.org/api/command-line.html">PhantomJS Documentation</a> for a full list of command line options.</p>
|
|
|
</description>
|
|
|
<pubDate>Sat, 26 Jul 2014 00:00:00 +0100</pubDate>
|
|
|
- <link>/usage.html</link>
|
|
|
- <guid isPermaLink="true">/usage.html</guid>
|
|
|
+ <link>http://jonnnnyw.github.io/php-phantomjs/usage.html</link>
|
|
|
+ <guid isPermaLink="true">http://jonnnnyw.github.io/php-phantomjs/usage.html</guid>
|
|
|
</item>
|
|
|
|
|
|
<item>
|
|
|
@@ -895,11 +895,11 @@ code etc.</li>
|
|
|
<p>If you find that your script isn’t running or that you are receiving a status of ‘0’ back in the response, chances are you have a syntax error in you script. It pays to turn debugging on in the client <code>$client-&gt;debug(true)</code> which will then give you access to some log information through <code>$client-&gt;getLog()</code>.</p>
|
|
|
</blockquote>
|
|
|
|
|
|
-<p>See more detailed information about <a href="/troubleshooting.html">troubleshooting</a>.</p>
|
|
|
+<p>See more detailed information about <a href="http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html">troubleshooting</a>.</p>
|
|
|
</description>
|
|
|
<pubDate>Fri, 25 Jul 2014 00:00:00 +0100</pubDate>
|
|
|
- <link>/advanced.html</link>
|
|
|
- <guid isPermaLink="true">/advanced.html</guid>
|
|
|
+ <link>http://jonnnnyw.github.io/php-phantomjs/advanced.html</link>
|
|
|
+ <guid isPermaLink="true">http://jonnnnyw.github.io/php-phantomjs/advanced.html</guid>
|
|
|
</item>
|
|
|
|
|
|
<item>
|
|
|
@@ -921,7 +921,7 @@ code etc.</li>
|
|
|
|
|
|
<h4 id="its-not-installing-anything-to-my-bin-directory">It’s not installing anything to my bin directory</h4>
|
|
|
|
|
|
-<p>When installing via composer, as outlined in the <a href="/installation.html">installation guide</a>, it is recommended that you define the location of the bin folder for your project. This can be done by adding the following to your <code>composer.json</code> file:</p>
|
|
|
+<p>When installing via composer, as outlined in the <a href="http://jonnnnyw.github.io/php-phantomjs/installation.html">installation guide</a>, it is recommended that you define the location of the bin folder for your project. This can be done by adding the following to your <code>composer.json</code> file:</p>
|
|
|
|
|
|
<div class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="c1">#composer.json</span>
|
|
|
|
|
|
@@ -948,7 +948,7 @@ code etc.</li>
|
|
|
|
|
|
<h4 id="i-am-getting-a-invalidexecutableexception-when-making-a-request">I am getting a <code>InvalidExecutableException</code> when making a request</h4>
|
|
|
|
|
|
-<p>If you have installed via composer, as outlined in the <a href="/installation.html">installation guide</a>, then you should have 2 files installed in either the <code>bin</code> or <code>vendor/bin/</code> directory, in the root of your project. These files are called <code>phantomjs</code> and <code>phantomloader</code>. </p>
|
|
|
+<p>If you have installed via composer, as outlined in the <a href="http://jonnnnyw.github.io/php-phantomjs/installation.html">installation guide</a>, then you should have 2 files installed in either the <code>bin</code> or <code>vendor/bin/</code> directory, in the root of your project. These files are called <code>phantomjs</code> and <code>phantomloader</code>. </p>
|
|
|
|
|
|
<p>Check that these files exist and are executable by your application. If they do not exist, see <a href="#its-not-installing-anything-to-my-bin-directory">It’s not installing anything to my bin directory</a>.</p>
|
|
|
|
|
|
@@ -1158,11 +1158,11 @@ code etc.</li>
|
|
|
|
|
|
<h4 id="i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</h4>
|
|
|
|
|
|
-<p>You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own <a href="/advanced.html#custom-phantomjs-scripts">custom scripts</a> then try setting the <a href="#how-to-i-debug-a-request">debug flag</a> which <em>should</em> print some more detailed information in the debug log. Also check that you aren’t setting any parameters to <code>null</code> in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. <code>var width = ,</code>.</p>
|
|
|
+<p>You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html#custom-phantomjs-scripts">custom scripts</a> then try setting the <a href="#how-to-i-debug-a-request">debug flag</a> which <em>should</em> print some more detailed information in the debug log. Also check that you aren’t setting any parameters to <code>null</code> in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. <code>var width = ,</code>.</p>
|
|
|
</description>
|
|
|
<pubDate>Wed, 23 Jul 2014 00:00:00 +0100</pubDate>
|
|
|
- <link>/troubleshooting.html</link>
|
|
|
- <guid isPermaLink="true">/troubleshooting.html</guid>
|
|
|
+ <link>http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html</link>
|
|
|
+ <guid isPermaLink="true">http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html</guid>
|
|
|
</item>
|
|
|
|
|
|
</channel>
|