I created a css page called style.php and included it at the top:
<?php header("Content-type: text/css"); ?>
It makes you cringe. Is this a terrible idea? I do this because I created a CMS that allows the administrator to control the colors on the pages (therefore, the style.php script queries the database and captures hexadecimal values).
Any thoughts?
source
share