title: Call to undefined function sqlsrv_connect() in xampp
body: <p>When I tried to connect sqlsrv server in codeigniter, I got this error message.</p>
  
  <blockquote>
    <p>Call to undefined function sqlsrv_connect() in xampp</p>
  </blockquote>
  
  <p>Below is codes from database.php</p>
  
  <pre><code>$db['default'] = array(
  'dsn'   =&gt; '',
  'hostname' =&gt; 'MainDS\WTInfoUnit',
  'username' =&gt; 'sa',
  'password' =&gt; 'crafter',
  'database' =&gt; 'BioStar_DoorLog',
  'dbdriver' =&gt; 'sqlsrv',
  'dbprefix' =&gt; '',
  'pconnect' =&gt; FALSE,
  'db_debug' =&gt; (ENVIRONMENT !== 'production'),
  'cache_on' =&gt; FALSE,
  'cachedir' =&gt; '',
  'char_set' =&gt; 'utf8',
  'dbcollat' =&gt; 'utf8_general_ci',
  'swap_pre' =&gt; '',
  'encrypt' =&gt; FALSE,
  'compress' =&gt; FALSE,
  'stricton' =&gt; FALSE,
  'failover' =&gt; array(),
  'save_queries' =&gt; TRUE
  </code></pre>
  
  <p>Can anyone help ?</p>