Quote:
Originally Posted by acid_kewpie
Well this couldn't be relevant to CSS at all, that's what's in the file, not the file itself. Certainly you'd NEVER want to use absolute paths. Horrific. I'd be looking at the Directory definitions to ensure that you're allowed to access files in that location, and of course check your error logs for issues there.
|
Thanks acid_kewpie, the call I'm using actually looks like this
PHP Code:
$css = $_SERVER["DOCUMENT_ROOT"] . "css";
@import url('<?php print($css);?>/index.css');
This is what the browser sees.
PHP Code:
@import url('/var/www/html/css/index.css');
Just to verfy that it was the path and not the syntax that failed, I've typed in the absolute path.
If I weren't allowed access wouldn't the relative path call fail as well?