Posted by Sherm Pendley on 04/22/07 19:33
Manfred Preußig <PreussigM@web.de> writes:
> Steven Saunderson schrieb:
>> On 22 Apr 2007 00:46:06 -0700, Desmond <otuatail@aol.com> wrote:
>>
> ...
>> I don't think the extension of the filename of the included file
>> matters. I have PHP scripts that 'include' files such as index.inc and
>> these files contain PHP statements that are parsed correctly.
>>
> Taht are good news. But ... that it works with these other extensions
> don't really mean that it works with php in *.html ... sadly since the
> php-parser may take all extensions ... but what's about the
> html-parser?
The HTML parser is in the browser. It doesn't care what the extension of
the file is, or even if the content it received was read from a file at
all. All the browser cares about is the MIME type specified by the server
in the HTTP headers; if that is text/html, it parses it as HTML.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
[Back to original message]
|