Even after increasing your php memory, if you are still getting “unable to allocate memory for pill in PHP” error, then should be related to APC. For the people having this problem, please specify you .ini settings. Specifically your apc.mmap_file_mask setting. For file-backed mmap, it should be set to something […]

“Unable to allocate memory for pool” in PHP?

For downloading csv files using php. <?php   header("Pragma: public");   header("Expires: 0");   header("Cache-Control: must-revalidate, post-check=0, pre-check=0");   header("Cache-Control: private",false);   header("Content-Type: application/csv");   header("Content-Disposition: attachment; filename=\"output.csv\";" );  readfile("path to output.csv");   ?>

Download as CSV – PHP