Using PHP as a CSS file? Using PHP as a CSS file? google-chrome google-chrome

Using PHP as a CSS file?


You have to tell the browser that it is a CSS-file and not a HTML-file, write the following before any output:

<?php header("Content-type: text/css"); ?>

See:http://www.barelyfitz.com/projects/csscolor/


Try adding

<?php header("Content-type: text/css"); ?>

in first line of your stylesheet.php