apache - Why is __FILE__ and DOCUMENT_ROOT returning C:\path\to\webserver -


echoing out __file__ and $_server['document_root'] on apache server returning string(26) "c:/users/me/my sites/pathtofile/".

what's that? it's being used in codeigniter lot (and breaking them) files come out as:

<link href="c:/assets/css/main.css?c=" media="all" rel="stylesheet"/> 

i'm running apache/2.4.9 (win64) if helps.

as ariful mentioned, __file__ constant set php , $_server['document_root'] array of settings web server. these used throughout codeigniter , fuel cms handle file includes.

if you're looking output css path view, there helper this:

echo css_path('main.css'); // outputs "http://example.com/assets/css/main.css" 

more info , other asset helpers can found here: http://docs.getfuelcms.com/helpers/asset_helper


Popular posts from this blog