If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

CSS is generally a completely separate entity from PHP. If you'd like to actively modify CSS code, you should look into javascript solutions, and you can even use PHP before/after the javascript command.

Not a PHP issue.
Make sure you have AllowOverride set in httpd.conf to include FileInfo as well. If using the mod_mime.c and AddType isn't working, than checking the httpd.conf for the AllowOverride configurations is where to start.
You also don't really need to do it. Client developers could verify, but best I know browsers don't do any extension verification on an imported stylesheet. Assuming that's correct, you can successfully import a .php file without needing to add css to a parsable type.

PHP Code:

header('HTTP/1.1 420 Enhance Your Calm');

Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

Client developers could verify, but best I know browsers don't do any extension verification on an imported stylesheet. Assuming that's correct, you can successfully import a .php file without needing to add css to a parsable type.

yupp, browsers only care about the MIME type. i.e. as long as the MIME type is text/css the file extension doesn’t matter.

note: Apache automatically assigns text/html to PHP files, if not overwritten in the PHP script.

The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.