$this->load->library('datavalidation');//load up the my custom data validation libary!
$this->load->library('spreadsheet_excel_reader');//Load up the excel libary!
$this->load->helper('file');//load up the file helper!
/*
**some pre application bits and bobs, mainly because we are importing a fucking massive sheet, the other is because of bullshit unicode stuff within the sheet we are importing! both will be resolved in the final beta!
*/
ini_set("memory_limit","256M");//increate the memory so it will process large files, i know i know its a horrible hack!!
error_reporting(E_ALL ^ E_NOTICE);//getting error messages because of the input encoding of files, we will just supress the warnings for now..
/*
**Lets do some safty netting, making sure the file we import is going to be a file safe to import and process latter on in the system.
*/
$fileinfo=$this->file->get_file_info('$filepath','size');//lets get the "size" of the file, then we can check if the file exists, and do a little safty netting to see if the file is to big!