You are here: Re: Embedding the entire HTML within PHP « All PHP « IT news, forums, messages
Re: Embedding the entire HTML within PHP

Posted by Martie on 05/19/06 19:31

On Wed, 17 May 2006 22:10:31 GMT, Domestos wrote...
>
>Hi all,
>
>I am currently writing pages that are pure PHP. i.e. they begin with the
><?php symbol.
>
>I am embedding all the HTML within echo ' ' commands even the <HTML> <HEAD>
>and <BODY> tags
>
>i..e.
>
><?php
>echo '<HTML><HEAD><TITLE>Title</TITLE></HEAD><BODY></BODY></HTML>';
>?>
>
>Is this the right way to do things? or should I be embedding PHP into the
>HTML page?
>

If only you are working on the code it's probably more of a personal preference.
If you have other people working on it now or in the future, it may be better to
separate the HTML from the PHP code. If there are future updates to the code
that may also factor into your decision.


--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

 

Navigation:

[Reply to this 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

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