티스토리 뷰
php
[PHP] Parse error: syntax error, unexpected 'new' (T_NEW) in C:\AutoSet10\server\bin\reader.php on line 532
xemaker 2017. 12. 12. 14:57윈도우 Autoset10 환경에서 phpExcelReader를 써볼려고 했다.
웹브라우저에서 실행하니 500 error가 났다.
페이지가 작동하지 않습니다.
현재 localhost에서 요청을 처리할 수 없습니다.
HTTP ERROR 500
흠.. 어떻게 어디서 잘못된 거지?
그래서 C:\AutoSet10\server\bin 에 있는 php.exe로 실행하면 뭔가 에러의 단서를 찾을 수 있을거 같았다.
그래서 파일들을 옮겨두고 실행.
하니
Parse error: syntax error, unexpected 'new' (T_NEW) in C:\AutoSet10\server\bin\reader.php on line 532
이런 에러가 났다.
어딘지 보니
$this->_ole =&new OLERead();
이부분 이였다.
구글링 해보니 유튜브 동영상이 검색결과로 나왔고 봐보니 나랑 똑같이 phpExcelReader 쓰다가 에러났다.
결론은 & 빼주면 된다였다.
&빼서
$this->_ole =new OLERead();
이렇게 만들고 실행하니
위의 에러는 안났다.
그러나 다른 에러가 났으니...
Fatal error: Uncaught Error: Class 'OLERead' not found in C:\AutoSet10\server\bi
n\reader.php:265
Stack trace:
#0 C:\AutoSet10\server\bin\myexample.php(10): Spreadsheet_Excel_Reader->Spreadsh
eet_Excel_Reader()
#1 {main}
thrown in C:\AutoSet10\server\bin\reader.php on line 265
이 에러에 대한 해결책은 다음 포스팅에...
웹브라우저에서 실행하니 500 error가 났다.
페이지가 작동하지 않습니다.
현재 localhost에서 요청을 처리할 수 없습니다.
HTTP ERROR 500
흠.. 어떻게 어디서 잘못된 거지?
그래서 C:\AutoSet10\server\bin 에 있는 php.exe로 실행하면 뭔가 에러의 단서를 찾을 수 있을거 같았다.
그래서 파일들을 옮겨두고 실행.
하니
Parse error: syntax error, unexpected 'new' (T_NEW) in C:\AutoSet10\server\bin\reader.php on line 532
이런 에러가 났다.
어딘지 보니
$this->_ole =&new OLERead();
이부분 이였다.
구글링 해보니 유튜브 동영상이 검색결과로 나왔고 봐보니 나랑 똑같이 phpExcelReader 쓰다가 에러났다.
결론은 & 빼주면 된다였다.
&빼서
$this->_ole =new OLERead();
이렇게 만들고 실행하니
위의 에러는 안났다.
그러나 다른 에러가 났으니...
Fatal error: Uncaught Error: Class 'OLERead' not found in C:\AutoSet10\server\bi
n\reader.php:265
Stack trace:
#0 C:\AutoSet10\server\bin\myexample.php(10): Spreadsheet_Excel_Reader->Spreadsh
eet_Excel_Reader()
#1 {main}
thrown in C:\AutoSet10\server\bin\reader.php on line 265
이 에러에 대한 해결책은 다음 포스팅에...
'php' 카테고리의 다른 글
[php] php엑셀리더 (phpExcelReader) Spreadsheet_Excel_Reader AutoSet10 환경에서 실행하기 (0) | 2017.12.13 |
---|---|
[PHP] phpExcelReader 사용중 Fatal error: Uncaught Error: Class 'OLERead' not found in C:\AutoSet10\server\bin\reader.php:265 (0) | 2017.12.12 |
[PHP] Spreadsheet_Excel_Reader 활용해 엑셀 데이터 읽기 (0) | 2017.12.11 |
php 파일 업로드 (0) | 2017.12.11 |
php 엑셀 excel 업로드 - phpExcelReader oleread.php (0) | 2017.12.11 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- EC
- xe addon
- 라이믹스 모듈
- 자바
- 파싱
- C
- XE
- JDBC
- ocjap
- 스크래핑
- xe애드온
- MySQL
- Python
- php
- C언어
- 포인터
- webix
- 플러터
- XE3
- esql
- 인포믹스
- 오라클
- 문자열
- 프로씨
- ocajp
- 자바 smtp
- 이클립스
- proc
- 파이썬
- KG
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함