title: Using SQLSRV extension in PHP CLI script
body: <p>folks!</p>
  
  <p>This is my first experience with big scripts in PHP CLI and I'm facing a 'not found' error when using the <code>sqlsrv_connect</code> function in my script.
  Running the script in the browser is okay, connects all fine, the queries goes as fine as it could; but when in the CLI, my friend, it shows</p>
  
  <pre><code>Fatal error: Call to undefined function sqlsrv_connect()
  </code></pre>
  
  <p>What could it be, dark magic or newbie developer?</p>
  
  <p>This is how i use the function:</p>
  
  <pre><code>$_dbip = '127.0.0.1';
  $_dbnome = $nome_bd;
  $_dbuid = 'sa';
  $_dbpwd = 'very_strong_secret_pwd';
  
  $conn = sqlsrv_connect($_dbip, array('Database' =&gt; $_dbnome, 'UID' =&gt; $_dbuid, 'PWD' =&gt; $_dbpwd)) or die( print_r( sqlsrv_errors(), true));
  </code></pre>
  
  <p>Thanks in advance! </p>