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



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.
(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?

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.
--
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: Can PHP run from command line render HTML?
    ... the web server via a browser). ... Can such a script render HTML? ... idea being that the PHP script would startup a browser session when the ... have a running web server to which to submit the form. ...
    (comp.programming)
  • Re: Assigning PHP var to Javascript
    ... things work between the server and the client. ... Think of an HTML page as if it would be just plain text, ... generate such text and send it to the browser. ... For your PHP script it's just meaningless text, ...
    (comp.lang.php)
  • Re: IE works and Mozilla failes in Hyperlinks
    ... This is due to the fact that the HTML files you are linking to do not ... It is always unpredictable how a browser (any ... add an extension of ".html" or ".htm" to your web pages. ... > apperas at the browser window with the buttons hypelinks. ...
    (microsoft.public.frontpage.client)
  • 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)
  • 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)