Firefox 3.5.x problem with css files parsed by php

A few years ago I built a Website, styled with CasCading-Stylesheets.
Because of using vars in this external Stylesheet, i had to rename it from styles.css to styles.php.

So it’s being parsed by the PHP Interpreter, but the file headers has to be modified because it should not be a real php-file, it should to be used like a css file… this header modification works fine for that:
header('content-type: text/css');

The Website works fine for years… up to now.

I upgraded my Firefox to Version 3.5.7 and when i now visit the Website, the external CSS is not being used anymore! In Safari there is no Problem! In IE there is no Problem!

I tried to find other Websites with php files used as css and i saw there is the same problem with my Firefox!

(Edited)
okay I just looked at one other Website, but there was really the same problem… bad luck.

But now I found the problem… There was given a wrong charset in my php.ini file.
(I know, I should use UTF-8… but this Website is very old and my first real project)
We’ve made a transfer of the Website to another Server a few days ago and in the php.ini file i have written ISO-8559-1 instead of ISO-8859-1.

I dont know why, but this is the reason why the CSS has completely not been interpreted by Firefox, Safari and IE did its job…

Leave a Reply