<?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()?
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">
(or /> instead of > at the end if you want XHMTL)
You can replace HTML headers with HTTP headers for .css files.
My only problem is with the syntax.
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
This topic is now closed. New replies are no longer allowed.