Reply to Re: When Can PHP be mixed inline w/ HTML?

Your name:

Reply:


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
>

[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

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