Associate
I am in the middle of creating a website with a config.php so that it can be uploaded and changed quickly, the only problem seems to be if the site is uploaded to a folder that isnt the root folder.
I have been using things like server document root commands and things all the way through. I came up with the genius idea of putting in the config the ability to set a folder name if it is uploaded in the folder the only problem is that you cant include the config with out knowing the folder....which is held in the config.
If this makes any sense to you then I am impressed. Basically i need a way of no matter how it is hosted root or not being able to include the config. I dont want to have to include lots of the same code on each page to check this when i can define it in the config. It is just the initial getting to the config.
Any ideas or are you just totally confused!!
I have been using things like server document root commands and things all the way through. I came up with the genius idea of putting in the config the ability to set a folder name if it is uploaded in the folder the only problem is that you cant include the config with out knowing the folder....which is held in the config.
If this makes any sense to you then I am impressed. Basically i need a way of no matter how it is hosted root or not being able to include the config. I dont want to have to include lots of the same code on each page to check this when i can define it in the config. It is just the initial getting to the config.
Any ideas or are you just totally confused!!