title: Failed opening required mysqli_connect.php
body: <p>I 'm trying to connect to mysql database in my php script. I keep getting the following error:</p>
  
  <pre><code>    Warning: require(mysqli_connect.php): failed to open stream: No such file or directory in C:\xampp\htdocs\simpleIdb\register-page.php on line 52
  
     Fatal error: require(): Failed opening required 'mysqli_connect.php'   (include_path='.;C:\xampp\php\pear') in C:\xampp\htdocs\simpleIdb\register-page.php on line 52
  </code></pre>
  
  <p>I 'm running XAMPP 5.5.30 on Windows 10.</p>
  
  <p>Line 52 is:
  require('mysqli_connect.php');</p>
  
  <p>And the following as mysqli_connect.php:</p>
  
  <pre><code>     DEFINE ('DB_USER', 'horatio');
  
       DEFINE ('DB_PASSWORD','hmsvictory');
  
       DEFINE('DB_HOST', 'localhost');
  
       DEFINE('DB_NAME', 'simpleIdb');
  
       $dbcon = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)
  
       OR die ('Could not connect to MySQL:'.mysql_connect_error());
  
       mysql_set_charset($dbcon, 'utf-8');
  </code></pre>
  
  <p>My include path in php.ini is:</p>
  
  <pre><code> include_path=".;C:\xampp\php\pear"
  </code></pre>
  
  <p>There doesn't seem to be any closure on previous discussions on this issue:</p>
  
  <p><a href="https://stackoverflow.com/questions/18427070/mysqli-connect-fatal-error-require/34620454?noredirect=1#comment56987457_34620454">mysqli_connect Fatal Error: require()</a></p>
  
  <p><a href="https://stackoverflow.com/questions/11157763/fixing-php-pear-error?lq=1">Fixing PHP PEAR error</a></p>