Reply to Re: PHP in html

Your name:

Reply:


Posted by Captain Paralytic on 07/27/07 15:15

On 27 Jul, 15:58, John <John_nos...@nnnnnnnnn.nowhere> wrote:
> On Fri, 27 Jul 2007 02:02:52 -0700, Captain Paralytic
>
> <paul_laut...@yahoo.com> wrote:
>
> >A php include has to go in a php file.
>
> >HTML includes are normally done using SSI.
>
> >If you are using HTL includes then you are asking in totally the wrong
> >place.
>
> That is incorrect.
>
> You can have php includes in a html file.

How does that work?

a php include must be in a file that will be interpreted by the php
interpreter. The file extension may be .HTML, but the file will be a
php file by virtue of having the include() within php tags and the web
server will have been told that this type of file is a php file.

A php include() within a file that contains pure html and no php tags
will AFAIAA not do anything.

[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

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