| 
<?php
 // demo of two pages with different content types - one HTML, the other XUL.
 // this example works in mozilla/firefox only of course.
 
 include 'HV_HttpMultipart.php';
 $serverpush = new HV_HttpMultipart();
 
 
 $page = file_get_contents('page_processing.html');
 $serverpush->send($page, false, 'text/html');
 
 
 sleep(2); // go and do something...
 
 
 $page = file_get_contents('page_finished.xul');
 $serverpush->send($page, false, 'application/vnd.mozilla.xul+xml');
 
 ?>
 |