Tag Archives: excel import in php

Excel Import in PHP CSV

Excel Import in PHP CSV 1 <br /> <!–?php <br ?–> function uploadFile()<br /> {<br /> $img1=strtolower($_FILES["csvFile"]["name"]);<br /> $ext=getExtension($img1);<br /> $actual_image_name = time().".".$ext;<br /> $tmp = $_FILES[‘csvFile’][‘tmp_name’];<br /> if(move_uploaded_file($tmp, "excel_files/".$actual_image_name))<br /> {<br /> $file_name=$actual_image_name;<br /> return $file_name;<br /> }<br /> else<br /> {<br /> return false;<br /> }<br /> }<br /> function getExtension($file)<br /> {<br… Read More »