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
Post a Comment