Reply to Re: Coding style...

Your name:

Reply:


Posted by gerg on 01/04/06 08:33

> <?php
> global $user;
> if ($user->uid) {?> <li><a href="logout" title="">Log
> Out</a></li>
> <?php } else {?> <li><a href="user/login" title="">Log
> In</a></li>
> <?php }?>
>

I've heard that it's actually faster (processor wise) to do it this way,
then to have the PHP engine parse the html, and then have the browser
render it. If you do it the above way, PHP doesn't have to parse it
there for it's faster. Is this not the case?

Greg

[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

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