title: allow_url_fopen and allow_url_include with PHP require link
body: <p>I have a website which requires a certain page on all the other pages that I have. My problem is that I can't require this page using <code>require</code> since the link url will change, take this senario as an example:
  header.php:</p>
  
  <pre><code>&lt;?php
    require('include/database.php');
  ?&gt;
  </code></pre>
  
  <p>And then I have a file located at folder: woods/tree.php</p>
  
  <p>If I want to connect to the database from my index file, there is no problem, but if I want to connect to it from tree.php, then the url will not be the correct on header.php anymore. And that leaves me a problem. I tried fixing this by using the entire url:</p>
  
  <pre><code>&lt;?php
     require('http//www.example.com/include/database.php');
  ?&gt;
  </code></pre>
  
  <p>My problem is now that I can't do that because of security issues with allow_url_fopen and allow_url_include. I will need to find another way to link to that page since I don't want to enable any of the php.ini settings because of its insecurity.</p>
  
  <p>Is there another way for me to require the database so that all files in all folders can access it? Thanks in advance.</p>