I am using the virtual command to "include" the a cgi script. One one server, the page is rendered in the order I have it coded, on another server, the virtual code is displayed first and then the HTML afterwards.
How can I ensure that it is displayed in the order I have it coded?
TIA.
<?php
$script_name = "/cgi-bin/pro_demo/index.cgi";
$qs = $_SERVER['QUERY_STRING'];
if ($qs != '') {
$script_name .= "?" . $qs;
}
?>
<html>
<head>
<style type="text/css">
body { margin: 0px 0 0 -10px; } /*For NN4*/
html body {
padding-top: 10px;
margin:0;
font-size: 12px;
font-family: verdana, arial, courier;
}
.demo_title {
font-size: 11px;
color: #000000;
font-weight: bold;
font-family: verdana, arial, courier;
}
.demo_text {
font-size: 11px;
color: #000000;
font-family: verdana, arial, courier;
}
.demo_table {
border: 1 dashed #336699;
}
</style>
</head>
<body>
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" width="500" class="demo_table">
<tr>
<td height="5"></td>
</tr>
<tr>
<td class="demo_text" align="center">Login to view the administrator features.</td>
</tr>
<tr>
<td class="demo_text" align="center">Admin password: demo</td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table>
</div>
<?php virtual($script_name); ?>
</body>
</html>