[SLUG] Apache, CSS PHP

2004-11-08 Thread Howard Lowndes
I have a CSS file which has to be named *.css so that Apache knows to
send it as a text/css mime type but I want to do some PHP processing on
before it goes out; unfortunately Apache appears not to know to pass it
through the PHP handler as it not named *.php so the embedded PHP code
doesn't get processed.

I assume I have to do something with Action, AddHandler and SetHandler
directives, but just what exactly.

-- 
Howard.
LANNet Computing Associates;
Your Linux people http://www.lannetlinux.com
--
When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft.
--
Flatter government, not fatter government;
Get rid of the Australian states.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Apache, CSS PHP

2004-11-08 Thread amos
I don't know PHP that well but how about naming it .php and set
the content-type to text/css from inside PHP?
Or how about putting all your .css files under directory css/
(I think it's considered generally a good idea, like concentrating
all your images under images/) and telling apache to set text/css
for all files under this dir while still the .php suffix tells apache
to pass the files through PHP?
Just ideas I'd explore if I were you, nothing testted.
Cheers,
--Amos
Howard Lowndes wrote:
I have a CSS file which has to be named *.css so that Apache knows to
send it as a text/css mime type but I want to do some PHP processing on
before it goes out; unfortunately Apache appears not to know to pass it
through the PHP handler as it not named *.php so the embedded PHP code
doesn't get processed.
I assume I have to do something with Action, AddHandler and SetHandler
directives, but just what exactly.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html