Include Connection file
Posted: Wed Apr 23, 2008 2:26 am
Hello every body!
I am not very genius in programming. I am working on a online system.
I have my connection file in "home/config/connection.php" directory.
Now I am accessing this file through include ('../connection.php') on first level and include('../../connection.php') on second level. I have to mention all this in each file.
but the problem is that if I have to change my directory structure or relocate files to a new place then I will have to change path manually in all files. if there is any specific solution to solve this problem.please tell me about it in detail.
Thanks lot.
I am not very genius in programming. I am working on a online system.
I have my connection file in "home/config/connection.php" directory.
Now I am accessing this file through include ('../connection.php') on first level and include('../../connection.php') on second level. I have to mention all this in each file.
but the problem is that if I have to change my directory structure or relocate files to a new place then I will have to change path manually in all files. if there is any specific solution to solve this problem.please tell me about it in detail.
Thanks lot.