S
SeeSchloss
Hi,
I'd like to dynamically generate an external stylesheet
with PHP. Therefore, I replaced the
<link rel="stylesheet" type="text/css" href="style.css" />
with
<link rel="stylesheet" type="text/css" href="style.php" />
(replaced .css with .php).
The problem is that the browser only seems to use the
stylesheet when the extension is '.css', I also tried
'.inc' and a few others, and only '.css' worked (the files
were exactly the same, of course). And since .css files are
not interpreted by PHP (without modifying the config
file)...
Is it normal ? And could you suggest any other way to do it
?
I could make it internal, but since it is about 5KB, it
would almost double the weight of my pages.
Thanks.
I'd like to dynamically generate an external stylesheet
with PHP. Therefore, I replaced the
<link rel="stylesheet" type="text/css" href="style.css" />
with
<link rel="stylesheet" type="text/css" href="style.php" />
(replaced .css with .php).
The problem is that the browser only seems to use the
stylesheet when the extension is '.css', I also tried
'.inc' and a few others, and only '.css' worked (the files
were exactly the same, of course). And since .css files are
not interpreted by PHP (without modifying the config
file)...
Is it normal ? And could you suggest any other way to do it
?
I could make it internal, but since it is about 5KB, it
would almost double the weight of my pages.
Thanks.