[Typo3-dev] OT: XP SP2 impacts

Peter Niederlag niederlag at ikd01.de
Sat Jun 5 11:49:12 CEST 2004


Hi,

Martin T. Kutschker schrieb am  5.06.2004 um 10:45 Uhr CEST

> Peter Niederlag wrote:
> > Hi Patrick,
> > 
> > I just noticed some problems with content-type header in mozilla.
> > A customers webserver is configured to parse .css with php. PHP by
> > default will send a content-type text/html. So .css files will be
> > sent as text/html.
> 
> Can't PHP setup so that the default mime type changes with the 
> extension? It's nice to run CSS with PHP, but it's dull to send a
> wrong mime type.

I just had a quick look into this. I didn't find a solution other than
put in theree lines of custom php-code in the beginning of hte .css

<?php
header"content-type text/html");
?>

Is there some "mime-magic" for php?

Thx,
Peter
-- 
Peter Niederlag
http://www.niekom.de * Typo3 und EDV-Dienstleistungen *
http://www.clown-goli.de * Clown-Comedy-Jonglage-Animation *






More information about the TYPO3-dev mailing list