I’ve read a lot a blogs and forums but I’m still having trouble getting this to work. I allow my users to change their user account style sheet.
I’ve added the <?php header("Content-type: text/css"); ?> to the top of the style.php and I’ve included that file into my html.
But all I can see is
<style>
box {
color:#;
background-color:#;
</style>
The values aren’t showing up. Any pointers?
I’m going to take a wild guess here since we can’t see your stylesheet…
You aren’t using
echofor the values.Either that, or as Rytmis said, the values are in fact empty.
No point in trying to set the content type header if you’re using
includeto output the CSS in a<style>block, you should be referencing the file with a<link>tag.