How would I go about using PHP as a CSS file. I have just included it as a normal css file, but it fails to work in Google Chrome.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With