I'm wondering if this is a PHP.ini config issue. I find that, with large data sets, I can't echo incremented values.
<?php
ob_start();
*SQL query*
$count++;
$search_results = ob_get_clean();
echo $count;
echo $search_results;
?>
The code itself works, but with large data sets it doesn't appear at all. I'm wondering if this is a cacheing issue?