title: PHP: mysql_connect() won't work via command line
body: <p>I have a script which calls <code>mysql_connect()</code> to connect to a MySQL DB.  When I run the script in a browser, it works. However, when I run it from a command line I receive the following error:</p>
  
  <pre><code>Call to undefined function mysql_connect()
  </code></pre>
  
  <p>This seems completely paradoxical. Anyone have any ideas as how I can run it from the command line.  Btw, I run it from a bash shell like so:</p>
  
  <pre><code>php /path/to/script.php
  </code></pre>