|
Posted by LJB on 01/24/06 04:59
The reply below is not entirely correct. Files with the .html extension
(or any other extension for that matter) can contain PHP code if they
are called as an <em>include</em> file.
NC wrote:
> one man army wrote:
>
>>I have looked for a definitive answer for this and have not found one.
>
>
> The answer is very simple: when PHP code and HTML are out into a file
> with *.php extension.
>
>
>>for example, a file called xxx.html, marked
>> DocType -//W3C//DTD HTML 4.01 Transitional//EN
>
>
> Normally, HTTP servers are configured not to treat *.html files as
> those that contain no executable code. So if you put PHP code into an
> *.html file, it will not be executed.
>
> Cheers,
> NC
>
Navigation:
[Reply to this message]
|