Forum Moderators: phranque
I am using php code in css files to make small changes acording to the language and other variables that need to be passed.
-----------------------------
To get it to work on Apache running PHP as a module add this in the httpd.conf either in the general area or in a virtual host(if you want only that virtual host to run css files through the php module). You can also add it to a .htaccess file
<IfModule mod_mime.c>
AddType application/x-httpd-php .css
</IfModule>
--------------------
If you run Apache as a CGI application add the following:
Action application/x-php /cgi-bin/php
AddType application/x-php .css
(for the CGI solution I only tested it in a .htaccess file since my hosting service does not allow me to modify the httpd.conf file)