note 79004 deleted from function.header by tularis
| From: | tularis@php.net | Date: | Fri, 04 Apr 2014 11:29:23 +0000 |
| Subject: | note 79004 deleted from function.header by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199164@lists.php.net to get a copy of this message | ||
Note Submitter: Aleks
----
I recently had a hair-threatening problem with Firefox and XHTML 1.0 transitional.
It worked fine with other browsers, and also with HTML 4.1.
To cut a long story short, PHP-generated JS and CSS files were still being reported by the headers
as text/html, while in the HTML they were text/css and application/javascript; Firefox having been
told the page was XHTML 1.0 became anal-retentive and refused to style the page. (I think the JS
still worked but I fixed it anyway.)
Solution:
header('Content-type: text/css');
and
header('Content-type: application/javascript');