this is how my file structure is. [..] are folders
[public] [libs] [crontab] [logs] [sessions] [tmp] config.php
the domain is installed in the shared folder as its root. everything else, including the config.php file, is outside the root. config contains db connection information and other necessary settings.
I have to put every page in the shared folder all the way, so include the configuration file. the problem is when I move everything from the local machine to a public server, I have to go through each page and change the path included for the configuration file. Is there a better way? perhaps setting the path in php.ini or something like that?
thanks
source share