I'm trying to upload 10k+ data in my database (using PHP and Mysql). However the file seems to be too large. If I reduce the size of the file to about 9300 records it works just fine but above that my code seems to fail at the following line $excelReader = PHPExcel_IOFactory::createReaderForFile($tmpfname);
I'm including only a snippet of my code (where I think is relevent to this question). I have the upload_max_filesize=124M
and post_max_size=124
as well. What could be the problem?
<?php
$tmpfname = $_FILES['file_save']['tmp_name'];
echo "0";
$excelReader = PHPExcel_IOFactory::createReaderForFile($tmpfname);
echo "1";
$excelObj = $excelReader->load($tmpfname);
echo "2";
$worksheet = $excelObj->getSheet(0);
echo "3";
$lastRow = $worksheet->getHighestRow();
?>