In the absence of conditional statements, consider named variables x, y and z, defined as basic string variables--pulled from a query or whatnot. In a PHP file, reading such back in a web page could be like this:
<?php
$x= blah, blah, blah;
$y= blah, blah, blah;
$z= blah, blah, blah;
echo "<p>$x</p>/n<p>$y</p>/n</p>;
?>
(of course) Similarly, in an ASP (VBScript) file), such wou go like:
<%
x= blah, blah, blah
y= blah, blah, blah
z= blah, blah, blah
Response.Write "<p>" & x & "</p>" & vbcrlf & "<p>" & y & "</p> & vbcrlf & "<p>" & z & "</p>"
%>
Alternatively, such could be written as: (php example)
<p><?php echo $x;?></p>
<p><?php echo $y;?></p>
<p><?php echo $z;?></p>
(asp example)
<p><% Response.Write x %></p>
<p><% Response.Write y %></p>
<p><% Response.Write z %></p>
I read somewhere that in as *.asp file, switching back and forth between execution mode and static html mode slows the server down, hence should be avoided. For quite a while, I have wondered if such holds true ion php. From what I gather, there is little or no difference with php. It has been suggested that the reverse might be true. That is, in the first above example, the php parser must "interpret" static html when such is in an echo statement.
Any ideas?