Re: PHP-Yes, HTML-No --- Why?



"Andrew DeFaria" <Andrew@xxxxxxxxxxx> wrote in message
news:43d85f6e$0$95966$742ec2ed@xxxxxxxxxxxxxxxxx
>d wrote:
>> I mean as in you are showing the world what technology you're using :)
> Who the hell cares? I mean aside from you!
>> The pages are spitting out HTML, and so logically should have a .html
>> extension when the browser sees them
> Hmmmm... That logic doesn't even make sense. You can have a Perl script or
> a .exe file that "spits out" just text. Should such files have a .txt
> extension?!? The .html signifies that the file contains HTML - and pretty
> much only HTML. A php script contains both HTML and PHP code so
> technically speaking it's not just HTML.

It only contains HTML when the user gets it. That's my point. The user is
getting a file from your web server, an HTML file, and it has an extension
of something other than HTML. Having your files named due to your servers
requirements is a bit selfish, in my opinion. Not to mention it makes
websites look terrible.

>> (as the extension signifies the contents of the file, even though web
>> browsers shouldn't use that to determine the contents of the file, people
>> still do).
> Why do you think that browsers shouldn't determine the contents of the
> file from it's extension? Truth is it does, multiple times over in many,
> many different occasions. Ever hear of mime.types? Ever actually configure
> an Apache server?

Because the RFC says browsers should rely on the content-type header sent.
Of course I have configured apache servers. I don't want to get into a
pissing match here, but please rest assured I've configured some massive
apache setups on some very expensive hardware for some very big clients
paying very good money :) That's all I'll say about that, as it's a vulgar
subject at best.

> And what's so wrong about doing that anyway? Until and unless we have a
> robust and reliable object oriented and typed file system extensions will
> be the way to go.

Or, if we have properly-coded modules for our web servers. We're not
hosting things on 386s any more. We have gigahertz of power to play with,
and checking a file for "<?" or "<?php" funnily enough doesn't take a
cluster of supercomputers. It's not rocket science :)

> --
> For my birthday I got a humidifier and a de-humidifier...I put them in the
> same room and let them fight it out...


.



Relevant Pages

  • Re: Mulberry gone, now what?
    ... HTML has persuaded me that MRC is right about something I used to think he was wrong about. ... From a user's point of view, a browser that did a better job of guessing what was intended by broken HTML provided a better user experience. ... So as browsers got better at parsing broken HTML, more broken HTML populated the web. ... When SMTP clients and servers that worked fine with and depended on sendmail's failure to follow the standards started to fail with sendmail alternatives, the people who made the policy decisions were informed enough to put pressure where it belonged. ...
    (comp.mail.imap)
  • Re: Authoring for browsers other than IE or Nav
    ... Windows XP SP 2 will not display the pages as HTML without having an extension. ... Thomas A. Rowe (Microsoft MVP - FrontPage) ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: file extension
    ... The only files that may *need* to be named with a .html extension are the ... home page and any default pages in folders (and with most servers even that ... The remaining pages may be named .htm or .html - it is ...
    (microsoft.public.frontpage.client)
  • Securing .html pages using .NET Framework 2.0 on IIS 6.0
    ... This opens "Application Configuration" ... Click "Add" to add a new Application Extension. ... Type in ".html" into the "Extension" textbox. ... 8.Click "OK" until you are out of the properties window. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HTML Signature with Picture Logo
    ... www.mozilla.org Download the Mozilla suite and use Composer to edit your html file. ... Saving as a HTM file is not a problem. ... Even if the file is saved with the extension this can be changed by ... and paste it into a new Notepad window. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)