Firefox not loading PHP stylesheet

PostJun 19th, 2008 | Comments (0)
Quick tip:

If you're going to create a dynamic CSS stylesheet using PHP (e.g. style.php instead of style.css), make sure you spit out a "content-type" header at the top of the stylesheet or Firefox will choke and not load it.

Put this at the top of the page:

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

Comments

There have been no comments

Post a comment

Name
URL
Email
Comment