Alternative to include file or require_once() in php
<p>I am new to PHP so don't know if there is any alternative to <code>require_once()</code>. My issue is: currently I am including database configuration file on almost each and every file which needs to connect with database using <code>require_once()</code>. I don't want to include my configuration file on each and every file because it may cause some security risk. Any kind of help would be apriciated. Thanks in advance.</p>
