Re: .php file extension in browsers
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: .php file extension in browsers

From: Malcolm Dew-Jones <yf110@vtn1.victoria.tc.ca>
Date: Fri Oct 07 2005 - 23:12:44 CEST

John Dunlop (usenet+2004@john.dunlop.name) wrote:
: Dikkie Dik wrote:

: > John Dunlop wrote:
: >
: > > http://msdn.microsoft.com/workshop/networking/moniker/overview/appendix_a.asp
: >
: > Thanks. This explains a lot.

: what, you mean, you understood that?? I salute you. it took me god knows
: how many readings just to get the gist of it.

: > I have written a translation script that will convert a HTML page to PML
: > (a plaintext format that can be converted to Palmreader documents).
: > However, as the first HTML tags were processed, IE kept displaying the
: > results as HTML, despite the header stating it was text/plain.
: > At some point during development, it got displayed as text.

: IE recognises text/plain as an 'ambiguous' type (although the doc does
: mention an exception, IE6 for XP SP2), so to disambiguate it it scans the
: contents (the first 256 bytes) and determines what it thinks should be the
: "true" type, and thus overrides your Content-Type header (step 2).

: Broken As Designed.

Which suggests another work around that be ok in some situations.

Simply insert a blank line at least 256 bytes/characters long at the top
of the text.

--
This programmer available for rent.
Received on Tue Oct 18 02:39:05 2005