ini_set('max_execution_time', 0); // 원하는 시간초를 넣는다.
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
[PHP]
1. 에러
- 'Maximum execution time of 30 seconds exceeded'
2. 검색어
- 'Maximum execution time of 30 seconds exceeded'
결과 => "you could extend the maximum execution time like this:" (stackoverflow 링크)
3. 원인
- 최대 스크립트 실행시간의 초과로 인한 에러 발생
4. 해결법
최대 스크립트 실행시간 늘려주기
2가지 방법이 있다.
1) php.ini
max_execution_time = 30 이 default 이기 때문에 적당하게 그이상의 시간초를 작성한다.
2) php 스크립트에 추가
ini_set('max_execution_time', 0); // 원하는 시간초를 넣는다.
[PHP] Maximum execution time of 30 seconds exceeded (0) | 2016.12.14 |
---|---|
[PHP] libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG (0) | 2016.12.14 |