i use
<?php ob_start("ob_gzhandler"); ?>
to buffer and gzip the output for faster transmission
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
<?php ob_start("ob_gzhandler"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<script language='javascript' type='text/javascript' src='/propertysel.js.php'></script>
<Title>Add/Remove Resident - </Title>
<?php define("_BB_DIR", "./bb/");
define("COUNTER", _BB_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
include ("./menu.php"); ?>
<p>Add/Remove Resident
<FORM name="globe" METHOD="POST" ACTION="http://www.mysite.com/cgi-bin/bnbform.cgi">
<INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="mailapps"><INPUT TYPE="HIDDEN" NAME="countfile" VALUE="countmailapps">
<INPUT TYPE="hidden" NAME="submit_to" VALUE="enquiries@mysite.com">
<!--
bla bla
-->
to confirm this application</p>
</body></html><?php ob_flush(); ?>
addendum (reference to script.js.php[INDENT]php version javascript file
<?php ob_start("ob_gzhandler");
header ('content-type: text/javascript'); ?>
php version css file
<?php ob_start("ob_gzhandler");
header ('content-type: text/css'); ?>
[/INDENT]too is gzipped)
havent yet learned to enable gzip in apache
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376