title: Merging multiple PHP script into a single file
body: <p>I have a PHP script which includes one or two other libraries it depends on using the '<code>include</code>' statement. To make it more easily portable, I would like to somehow 'compile' the script and the <code>include</code>d libraries it into a single PHP script (in the same way that <a href="http://betterthangrep.com" rel="noreferrer">ack</a> includes all its Perl dependencies in one file). Is there an easy way to do this in PHP?</p>
  
  <p><strong>Clarification:</strong> Compiling to a windows executable could be (part of) an acceptable solution, but the script still needs to run on *nix, where it is better to have PHP source code with '<code>#!/usr/bin/env php</code>' at the top.</p>
  
  <p>I want to be able to drop a single file into the $PATH somewhere on any OS and have it work without needing extra PHP libraries to be installed as well.</p>