엑셀 업로드 오류 관련 채택완료
엑셀 업로드가 잘 되던게
엑셀 업로드 처리 파일에서 갑자기
The filename /tmp/phpIZpVTo is not readable
이런 오류가 나서
include_once(G5_LIB_PATH.'/Excel/reader.php');
파일을 확인해보니 아래 함수인데.. 도대체 왜 갑자기 이런 오류가 나는지 도저히 모르겠네요
비슷한 증상 겪은분 있으신가요?
$res = $this->_ole->read($sFileName);
// oops, something goes wrong (Darko Miljanovic) if($res === false) { // check error code if($this->_ole->error == 1) { // bad file die('The filename ' . $sFileName . ' is not readable'); } // check other error codes here (eg bad fileformat, etc...) }
$this->data = $this->_ole->getWorkBook();
답변 2개
The filename /tmp/phpIZpVTo is not readable
엑셀을 업로드하시면 tmp 폴더에 임시로 파일이 생성되는데
그 파일을 읽을수 없다라고 하는것 같습니다.
엑셀 파일이 잘못된것이 아닌가?하는 추측입니다.
보통 엑셀 업로드를 하시면
Excel 97 - 2003 통합문서 (*.xls) 로 많이들 사용하십니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인