title: How to pass file into PHP CLI?
body: <p>I have a PHP script named "scipt" and a textfile called 'data.txt'. Right now I can execute script, but then I need to type in "data.txt". Is there any way to pass in data.txt as a parameter to "script" so I can run this thing in one line automated?</p>
  
  <p>Right now I'm typing:</p>
  
  <pre><code>php script {enter} // script runs and waits for me to type filename
  data.txt {enter}
  ... executes
  </code></pre>
  
  <p>Ideally it would look like:</p>
  
  <pre><code>php script data.txt {enter}
  ...executes
  </code></pre>
  
  <p>I'm doing this all from the PHP command line. Cheers :)</p>