I have PHP file where I have defined the server access variables as well as the mysql_connect
and mysql_select_db
, as this functions are regularly used in almost every page in backend, while I am using include()
which is perfectly working for me now, which method or function would you suggest and I would like to know if there is any flaw if I use include()
or is it safe to use it?
Edit : Keeping in mind I'll be using $_SESSION
variable too.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…