I\'m working on a website that has a number of style sheets all of which need to be handled as PHP scripts server-side. My .htaccess file looks som
try:
php_value default_mimetype "text/css"
You should be able to just add a .php extension to all of your CSS files; this will cause the server to pass all of the "normal" CSS as just that, whereas all of your dynamic, PHP-generated CSS should be parsed. After that, it's just a matter of slightly modifying the way in which you link your stylesheets:
<link rel="stylesheet" type="text/css" href="styles.css.php" />
Though that's always done the trick for me, there's a slight chance you may need to explicitly declare the MIME type of your CSS files using PHP's header() function, like so:
header('Content-type: text/css');