The error itself

Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open C:\OpenServer\domains\kinopoisk\phpexel\Страницы с сылками2.xls for reading! File does not exist.' in C:\OpenServer\domains\kinopoisk\phpexel\PHPExcel\Reader\Excel5.php:433 

the code itself

 require_once 'PHPExcel.php'; header('Content-Type: text/json; charset=utf-8'); $sPath = dirname(__FILE__); $sInFile = $sPath.'\Сериалы с сылками2.xls'; date_default_timezone_set('Europe/Moscow'); $oExcel = PHPExcel_IOFactory::load($sInFile); $iStart = 2; $aRes = array(); for ($i= $iStart; $i <= 1000; $i++) { $oRow = new stdClass(); $oRow->id = $oExcel->getActiveSheet()->getCell('B' . $i)->getValue(); $aRes[] = $oRow; } var_dump($aRes); 
  • Most likely, the case in Cyrillic and / or in the gaps in the way. Try renaming the file. - Alexey Ukolov
  • @ AlexeyUkolov didn’t know how to make out the answer - Sergalas

1 answer 1

Most likely, the case in Cyrillic and / or in the gaps in the way. On Windows, this is a common problem. Try renaming the file.