You are here: Re: PHP Best Practices « PHP Programming Language « IT news, forums, messages
Re: PHP Best Practices

Posted by mvandenb on 12/22/06 22:20

Better... No. Different... Yes.

Read this:

http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40

better then me just restating what is there!

Matthew

eholz1 wrote:
> Hello, I have a basic design question, in terms of what is "better"
> programming.
>
> I have a web site, and am using php pages as includes. some of the php
> pages have php tags, and "echo" or "print" the php variables and html.
>
> Like this:
> <div id="body">
> <?php include("phpincludes/server-nav.php"); ?>
> </div>
>
> the php page has code like this:
> <div id="header">
> <ul>
> <li class="tab" <?php if ($thisPage=="Home")
> echo " id=\"currentpage\""; ?>>
> <a href="http://abf966/LBA/index.php">Home</a>
> </li>
> <li class="tab" <?php if ($thisPage=="Introduction")
> echo " id=\"currentpage\""; ?>>
> <a href="http://abf966/LBA/intro.php">Introduction</a></li> ...
> etc
>
> is it better (or not) to not only echo divs, etc but to create
> everything within php tags like this?
>
> <?php echo ('<h2 class="decco" id="hdrTopic">Who We Are Not</h2>'); ?>
>
> OR is this really the same thing, but looks different???
>
> thanks again,
>
> ewholz

 

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

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