I'm working on a out of the box application that will install on the machine without manually configuring the paths to the scripts.
It requires two important configuration variabels, the path to the file and URL in which is the file is located.
So if I have an include.php file in a folder called cart on a domain called cart.com, then the URL should be http://www.cart.com/cart
However, I'm including include.php in a subdirectory of cart called admin, which is the wacky part.
I'm not sure if there is an automatic way of setting up includes where you can just drop the files and it will automatically configure the correct paths and URL without manually editing it. Any suggestions?