|
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
Navigation:
[Reply to this message]
|