I got a problem with CSS pages.
To simplify configuration on my web site, all colors are stored in global variables, on file "colors.php"
I built a CSS page named "mysite.css.php" where entries look like the following:
body {
background-color: <?php echo($GLOBALS["thecolor"]);?>
}
My main php file has the following line to include CSS:
<link rel="stylesheet" type="text/css" href="mysite.css.php">
My CSS file is not accepted at all. I searched info about CSS and PHP, I don't see any syntax errors. I am not sure if I it is possible to have a php file as a style sheet. Anyone see my error?