mime types - winxp + firefox + xhtml + css |
|
do I need to edit:
C:\Program Files\NuSphere\PhpED\config\srvmime.cfg (currently empty) with an entry for css files? if so what is the format for entries into this file? |
||||||||||||
|
|
Did you ever figure out a solution to this issue? I am having the same problem...
|
||||||||||||
|
|
I am not sure of solution/problem (It was two years ago)
a possible solution maybe adding the following? <meta http-equiv="Content-Style-Type" content="text/css" /> |
||||||||||||
|
Site Admin
|
It seems is your mistake. If you don't output the content type header, php WILL ADD it for you and the default content type is of course text/html.
So, if you process CSS or JS, you have to add header('Content-Type: text/css') or header('Content-Type: text/javascript') respectively and of course the header must the the first output in your script. For further details please check php manual: http://php.net/manual/en/function.header.php btw, I'd recommend never process CSS or JS in php. It's better to leave them static (e.g. files). Scripts that you output from php won't be cached on the client, so they will re-run for each page the client requests. This would slow down appearing of the page in the browser and may bring some side effects. Finally, there is no reason to add anything for CSS or JS in php. |
||||||||||||
_________________ The PHP IDE team |
mime types - winxp + firefox + xhtml + css |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by