title: How do you get the HTML phpinfo() on the command line?
body: <p>I've tried various things like</p>
  
  <pre><code>php -r "echo phpinfo();" &gt; test.html
  </code></pre>
  
  <p>and</p>
  
  <pre><code>echo "&lt;?php phpinfo(); ?&gt;" | php &gt; test.html
  </code></pre>
  
  <p>but I get a non-HTML dump. (Don't want to expose details here, as it's a company server.)</p>
  
  <p>I guess PHP is detecting what "client" I am on, and serving a text dump instead of the classic purple HTML page?</p>