there is such code here:
$file_path_excel = "http://site.ua/system/PHPExcel/my.xls"; function readExelFile($filepath){ require_once "Classes/PHPExcel.php"; //подключаем наш фреймворк $ar=array(); // инициализируем массив $inputFileType = PHPExcel_IOFactory::identify($filepath); // узнаем тип файла, excel может хранить файлы в разных форматах, xls, xlsx и другие $objReader = PHPExcel_IOFactory::createReader($inputFileType); // создаем объект для чтения файла $objPHPExcel = $objReader->load($filepath); // загружаем данные файла в объект $ar = $objPHPExcel->getActiveSheet()->toArray(); // выгружаем данные из объекта в массив return $ar; //возвращаем массив } $ar=readExelFile($file_path_excel); foreach($ar as $ar_colls){ делаем что то....
On the way that I insert the file is downloaded, if you go through the browser. and phpexel cannot open it.
error code
<b>Fatal error</b>: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open http://.....ua/system/PHPExcel/my.xls for reading! File does not exist.' in ....www/system/PHPExcel/Classes/PHPExcel/Reader/Excel5.php:433
Tell me how to get a file from a remote server?
thank