in which html tag, external php file should be included for better performance

LuckyNeo

New Member
I am using some php code like database connection which is common for all the pages, so I created a php file which contains the php code and then I am including this file in my html code,So I want to know the better way to include php file, better alternative for include function.my example code is here\[code\]<?php include "check_timeout.php"; include "connect_to_db.php";?><html><head> <title>Example</title></head><body><?php mysql_close($con);?></body></html>\[/code\]Thank you in advance.
 
Back
Top