Reply to Re: .php file extension in browsers

Your name:

Reply:


Posted by Malcolm Dew-Jones on 10/25/83 11:28

Oli Filth (catch@olifilth.co.uk) wrote:
: Rationem said the following on 03/10/2005 23:45:
: > Not true.
: >
: > Although the PHP is parsed through the server, a file with the
: > (generally) 'php' extension is sent to the client with HTML.
: >
: > IE understands that the .php extension contains HTML markup (as
: > processed by the server).
: >
: > By the same token, IE knows that (for instance) .jpg is not going to
: > look pretty in ASCII so it shows a download box.
: >
: > Opera believes that PHP files are not viewable and, therefore, is
: > offering you the chance to download it.
: >

: Well, that's gibberish...

That's not gibberish at all.

And in fact may entirely explain the problem.

If the output of the php script is sent as "content-type: something/odd"
then opera would correctly display a download dialog, whereas explorer
would likely ignore the content-type and use the file extension plus what
it "sees" in the data to guess it is supposed to be text/html and so
display it.

That's the well known behaviour of IE, and a well known difference between
IE and some other browsers.

Whether that is what is happening here, who knows...?


--

This programmer available for rent.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация