PHP / CodeIgniter - Iterating through 9000+ DB rows generates a download of blank page
I'm trying this:
function send_sms() {
$liveQuery = $this->db->get('liveList');
$counter = 0;
foreach($liveQuery->result() as $row):
$counter = $counter+1;
echo("Not hatin', just iteratin'. Message " . $counter);
endforeach;
}
When liveList has 8000 records it runs just fine, but when I try with 9000 rows it generates a download of开发者_StackOverflow中文版 a blank, 0 KB, document. Anyone know why this happens?
This post should help you:
http://codeigniter.com/forums/viewthread/129194/
I am not familiar with codeigniter, but do you have php error reporting on? There could be an error being thrown that's hidden.
Blank pages are normally a symptom of time-outs or crashed scripts. You might be able to find the exact reason in the server logs. Make sure you have the log_errors directive enabled in your PHP installation. Also, have a look at the web server logs.
精彩评论