Hi,
I want a block of HTML code at the top of my in my PHP file to be rendered in the browser before the PHP code is processed.
The way it seems to work now is that nothing will be rendered until the script has been 100% processed. Only then is the HTML code displayed.
Know how to solve this problem?
Here's my code:
--------- BEGIN CODE SNIPPET
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HEAD>
<TITLE> Title </TITLE>
<META http-equiv="Content-Type" content="text/html; charset=IS0-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!--
function test()
{ alert ("Hello!");}
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<TABLE ALIGN="center" BORDER="0" WIDTH="400" CELLPADDING="0" CELLSPACING="0">
<TR>
<TDThis text should display in browser before the PHP code that follows is processed.</TD>
</TR>
</TABLE>
<?php
// PHP CODE BEGINS FROM HERE
--------- END OF CODE SNIPPET