I've been trying to debug this code for hours now, but haven't been making any headway. My print statements are simply not working. Another question suggested I flush(), but it's not working.
echo 'this never prints';
flush();
flush();
flush();
Any help would be appreciated.