title: How to include config.php efficiently?
body: <p>I'm always interested in more efficient ways and learning new things. Right now, I am using the code <code>&lt;?php include('config.php'); ?&gt;</code> in each and every file. Depending on where the file is in my the folder structure, I would have <code>&lt;?php include('../config.php'); ?&gt;</code> or even  <code>&lt;?php include('../../config.php'); ?&gt;</code>. How can I make it more efficient? Is there a way to just have it my config.php in root and make everything in root require config.php? </p>