Hi
Yesterday I posted a script with server push that didn't work on my computer. Right now, the server push works well, but I never get the output from between the <H1> and </H1> HTML tags. Is it possible to display HTML content (text, pictures, ...) in a PHP script, or do I have to make several files?
Here's the script so far :
<?php
$end = "Finish";
header ("Content-type: multipart/x-mixed-replace;boundary=$end");
?>
<BODY>
<h1>Testline top</h1>
<?php
$loop = 0;
print ("--$end\n"); //start data
while ($loop<100)
{
print ("Content-type: text/plain\n\n"); //define data type
echo ("Test number $loop"); //data output
$loop++;
if ($loop==100)
print ("\n--$end--\n");//end of data
else
print ("\n--$end\n"); //start data
flush (); //clear buffer
}
?>
<h1>Testline bottom</h1>
</BODY>
Thank you.