title: PHP Require In different folders
body: <p>Okay so on my website I have a scripts folder which includes a php file which connects to mysql server so If I move a database then It will change it on all the files which are connect to the database.</p>
  
  <p>I also have another folder called templates. In that folder there is a top for the header and the footer. In the header template I wrote:</p>
  
  <pre><code>require("../scripts/connect.php");
  </code></pre>
  
  <p>And I have another folder called, category. And that folder includes the header and the header includes connect. But then it displays and error that there is no such files.</p>
  
  <p>Please help. Thank you</p>