title: Pass a variable to a PHP script running from the command line
body: <p>I have a PHP file that is needed to be run from the command line (via <a href="https://en.wikipedia.org/wiki/Cron#Overview" rel="noreferrer">crontab</a>). I need to pass <code>type=daily</code> to the file, but I don't know how. I tried:</p>
  <pre><code>php myfile.php?type=daily
  </code></pre>
  <p>but this error was returned:</p>
  <blockquote>
  <p>Could not open input file: myfile.php?type=daily</p>
  </blockquote>
  <p>What can I do?</p>