I currently have this
file_put_contents($tmpfile, $attachments[0]['body']); $objPHPExcel = PHPExcel_IOFactory::load($tmpfile);
The file that I am reading is extracted from email and then writes it to the tempfile file. I would like to read it directly in phpexcel from the line (if that makes sense)
$objPHPExcel = PHPExcel_IOFactory::load($attachments[0]['body']);
I looked at the php excel manual but can't figure out how to do this, any ideas?
bumperbox
source share