title: Passing Argument via Command Line php
body: <p>So I have this script that I'm trying to pass the argument via command line.
  But, can't get it to work.  Here's the code for the script:</p>
  
  <pre><code>#!/usr/bin/php 
  
  &lt;?php
  $argv[1] = $scraper;
  require_once('Scraper.php');
  $scraper = new JonH_Scraper();
  
  if (empty($argv[1])) {
      echo 'whats the URL?';
      }
  
  $scraper-&gt;scrape($url);
  var_dump($scraper);
  </code></pre>