Posted by mechphisto on 03/08/07 17:32
We're having this little debate here in the shop about which method is
more efficient on the parser, server, whatever. Staying in one parse
"session" and echoing HTML output or entering and leaving PHP and
leaving HTML to be presented "naturally":
(a)
<?php
[stuff]
echo "<html><body>stuff $var stuff";
[stuff]
echo "stuff $var2 stuff </body></html>";
?>
(b)
<?php
[stuff]
?>
<html><body>stuff <?= $var ?> stuff
<?php
[stuff]
?>
stuff <?= $var2 ?> stuff</body</html>
any feedback?
Thanks!!
-Liam
Navigation:
[Reply to this message]
|