?
-
Hi,
Currently I have a file which I include in every php file that requires
a database connection.
Instead of putting 'include("db_connection.inc")' inside those files, is
there a way to place it in a global environment?
If I were to use ASP, the solution is to put the statement inside the
global.asa file.
What is the solution for php? Thank you in advance.
Currently I have a file which I include in every php file that requires
a database connection.
Instead of putting 'include("db_connection.inc")' inside those files, is
there a way to place it in a global environment?
If I were to use ASP, the solution is to put the statement inside the
global.asa file.
What is the solution for php? Thank you in advance.