Click to See Complete Forum and Search --> : Server Processing Question


Dysan
12-30-2007, 11:19 AM
Does the server need to do more processing if html is included inside php tags?....

<html>
<head>
<title></title>
</head>

<body>

<?php
echo '<table border="1">';
echo '<tr>';
echo '<th>Firstname</th>';
echo '<th>Lastname</th>';
echo '</tr>';

echo '<tr>';
echo '<td>Firstname</td>';
echo '<td>Lastname</td>';
echo '</tr>';
echo '</table>';
?>

</body>
</html>


....than if PHP tags are included inside html?

<html>
<head>
<title></title>
</head>

<body>
<table border="1">
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>

<tr>
<td><?php echo "Firstname" ?></td>
<td><?php echo "Lastname" ?></td>
</tr>
</table>
</body>
</html>

smickus
12-30-2007, 12:16 PM
I'm saying yes, however this is only a guess! I imagine as the file size will be increased ( be it only by about 10 bytes for the "echo " " ;" stuff... However I really have no idea :)