title: PHP Throws "Fatal error: require(): Failed opening required '1' (include_path='.:/usr/local/php71/pear') in *directory* on line 2
body: <p>My basic file structure looks like this:</p>
  
  <pre><code>public_html
  ├── admin
  |  ├── _css
  |  ├── _php
  |  |  ├── login
  |  |  |  └── register_script.php
  └  └── register.php
  </code></pre>
  
  <p>And when I run this on register.php in /public_html/admin/</p>
  
  <pre class="lang-php prettyprint-override"><code>require '_php/login/register_script.php';
  //OR
  require *full directory*;
  //OR
  require dirname(__FILE__).'_php/login/register_script.php';
  //OR
  require $_SERVER["DOCUMENT_ROOT].'_php/login/register_script.php/';
  </code></pre>
  
  <p>They all return the same error:</p>
  
  <pre class="lang-php prettyprint-override"><code>
  Fatal error: require(): Failed opening required '1' (include_path='.:/usr/local/php71/pear') in /home/servername/public_html/admin/register.php on line 2
  
  </code></pre>
  
  <p>I did use hard refresh on the browsers, as the 'line 2' changes to 'line 3' if I enter a line before require. Thanks!</p>
  
  <p><strong>SOLVED: Changing the directory to ./_php/login/register_script.php works for me</strong></p>