php include best practice
I have read both sides of the coin. Some say php should be separated from html using includes. Some say it is poor programming to have php code in an include file other than database connection information. Right now I have a combination of both. Is it just a matter of preference or is there and actual benefit (security, performance, design) to over the other?
php include best practice
===

I have read both sides of the coin. Some say php should be separated from html using includes. Some say it is poor programming to have php code in an include file other than database connection information. Right now I have a combination of both. Is it just a matter of preference or is there and actual benefit (security, performance, design) to over the other?