routing - PHP - Trouble making my cms work for sub-folders -


im trying write cms im coming across issue when comes hosting server subfolder.

for example: mysite.com/cms/index.php

im trying make automatically allocates root directory , updates css, javascript, , page links without me having change manually cant seem find solution. tried using:

define('site_root', dirname(__file__) . directory_seperator); 

but returns real path , wont work links , such.. there way can fix this?


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -