CodeIgniter documentations says:
For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. After moving them, open your main index.php file and set the $system_folder and application_folder variables, preferably with a full path, e.g. '/www/MyUser/system'.
and through echoing the PHP $_SERVER['DOCUMENT_ROOT']
variable I've gotten the document root of my remote server, which was /home/MyUserName/public_html
but when I tried to do the same on my localhost I've gotten a different type of pathes (a windows path), it was D:/xampp/htdocs
. Why? and Is there a way through which I can get a path like the first one on my localhost?