PHP - Document_Root vs Sub-Domains
问题 I have the following code in my configuration file to establish the root path which is then used throughout the application: define('ROOT_PATH', $_SERVER['DOCUMENT_ROOT'].'/MyAppFolder/'); The problem is that it does not seem to work with sub domains. if I try to include my configuration file into a PHP file that is on the sub domain, naturally, I get an error. How can I get around this problem? How can I establish a root path that allows sub domains? I've never done this before so I haven't