*** PHPGB wrote/escribió (Sat, 20 Aug 2005 13:39:07 +0100):
Funnily enough I was wondering how to use php in css files last night .
Any problems or pitfalls with the method ? .
As I mentioned, PHP default config makes browsers reload a *.php document
from server everytime it's needed, and the whole point of external CSS
files is having them cached. Yet you can change this behaviour playing
around with header() function. Just be aware of it.
I don't know if there're other problems: I'd just test it under Internet
Explorer, which is the only known browser that prefers file extensions over
Content-Type headers.
--
-- Álvaro G. Vicario - Burgos, Spain
--
http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--