Page 1 of 1

broken HTML when connecting through a proxy

Posted: Sun Aug 26, 2007 4:13 pm
by billinnc
I'm new to building web sites using PHP and MySQL.

This problem has been frustrating me for about a week...

I am trying to output several hundred rows of database output to a HTML table. Everything seems to work OK... unless I view the site from work (connected through a proxy server) -- the table seems mostly OK, but occasionally a TD or TR tag is written without a open or close bracket. This doesn't happen when I view the site from home.

This happens randomly in different parts of the page. The more data are output to the page, the more likely the site is to improperly display the data. Every time I refresh the site, the errors are in different places.

Here is what I've tried so far...
1. Turned on output buffering in the PHP code with

Code: Select all

ob_start()
and end with

Code: Select all

ob_end_flush()

2. Attempted to control the http header with php code so as to not allow the proxy to cache the site (as follows)

Code: Select all

header("Cache-Control: must-revalidate");
header('Expires: Sun, 01 Jul 2005 00:00:00 GMT');
Other details...
web server: apahce, hosted with godaddy
php: version 4.3.11 (at the mercy of godaddy)

thanks, Bill