I have a localhost webpage that occasionally splits out broken HTML midway through the page. This will also happen with images, (although I suspect because they are very large in size 1200x2000px)
But this normally will happen during a database while ($data=mysql_fetch_contents($arr)) loop.
Has anyone seen this before and what did you do to correct this?
Finally found the answer was a buffer overflow issue.
Placing this code at the end of each while loop:
Fixed the problem.