rhgiant — 2012-04-11T16:57:18-04:00 — #1
<?php header('Link: <'.getPath('css').'some/more/stuff'.$var.'style.css>;rel=stylesheet'); ?>
Doesn't work... I tried with double quotes, no success. How would you do it?
On a related note: can you include .js files using header()?
scallioxtx — 2012-04-11T17:32:19-04:00 — #2
the header function is for sending HTTP headers, not for HTML headers
<link rel="stylesheet" type="text/css" href="<?php echo getPath('css'); ?>some/more/stuff<?php echo $var; ?>style.css">
/> instead of
> at the end if you want XHMTL)
rhgiant — 2012-04-12T02:20:49-04:00 — #3
You can replace HTML headers with HTTP headers for .css files.
My only problem is with the syntax.
scallioxtx — 2012-04-12T03:38:16-04:00 — #4
Wait, what? Are you sure about that? I've never heard about it, and google doesn't show much useful info either.
I do know that you can use the header function to let a PHP file act as though it's a CSS file, but that's something else