I'm trying output CSS using PHP to can make it more dynamic with wordpress settings but I'm getting 500 internal server error. I'm setting the header to text/css, tried to add handlers in IIS but it doesn't seem to work. Have no errors in the PHP file because if I remove my code it doesn't change.
<?php header("Content-type: text/css"); ?>
Whereas adding following to .htaccess works in case of apache server
AddType application/x-httpd-php .html .htm .css
AddHandler application/x-httpd-php .html .htm .css
This is the response i get using IIS:
HTTP/1.1 500 Internal Server Error
Content-Type: text/css
Server: Microsoft-IIS/7.0
X-Powered-By: PHP/5.3.13
Date: Tue, 11 Sep 2012 16:38:12 GMT
Content-Length: 0
Any idea how to get this working under IIS?