One of the scripts that I developed at work pulls data from a file and creates a hotels listing page. Some of the pages are large due to the amount of hotels in a given city.
My boss wants me to compress the html and I have no idea on how to do it, I did some reading over at php.net
The contents of the hotels is done in the following code:
$hotels_html .= "
<p><strong><a href=\"$Tencoded-".urlencode(strtolower($S))."-hotel$hotel_id.html\">$hotel_name</a></strong><br /><br />
$image_path$hotel_desc. $java<br />
$hotel_address, $hotel_city, $hotel_state $hotel_zipcode<br />
$hotel_phone<br />
<hr size=\"-1\" color=\"#C0C0C0\"></p>";
is the best thing to do this:
<?php
ob_start("ob_gzhandler");
?>
any ideas or thoughts would help!!
Thanks in Advance
Mike