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>
<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>