PHP - Multiple files Vs single file
<p>I have been playing about with an Ajax/PHP site and I am wondering about the best practices concerning calls to multiple PHP files Vs a single PHP file with many functions in it.</p>

<p>All of these calls are simple database access calls - returning data from a query. It seems a sensible thing to have a single file that opens the database and contains multiple functions, one for each of the calls, however I do not know the best practices in this instance and I am unaware of any security concerns that there may be.</p>

<p>Does anyone know the best practice in this case?</p>

<p>Cheers</p>

<p>BK</p>
