Notice Error 출력 수정
PHP 버전 확인 추가 PHP 모듈 확인 추가
This commit is contained in:
parent
a2113fc8ee
commit
92a6df8a94
16
epg2xml.php
16
epg2xml.php
@ -19,8 +19,20 @@ if(version_compare(PHP_VERSION, '5.6.11','<')) :
|
|||||||
printError("현재 PHP 버전은 ".PHP_VERSION." 입니다.");
|
printError("현재 PHP 버전은 ".PHP_VERSION." 입니다.");
|
||||||
exit;
|
exit;
|
||||||
endif;
|
endif;
|
||||||
if (!extension_loaded('json') && !extension_loaded('dom') && !extension_loaded('mbstring') && !extension_loaded('openssl')) :
|
if (!extension_loaded('json'))) :
|
||||||
printError("필요 모듈이 설치되지 않았습니다.\n json, dom, mbstring, openssl 모듈이 설치되어 있는지 확인하세요");
|
printError("json 모듈이 설치되지 않았습니다.");
|
||||||
|
exit;
|
||||||
|
endif;
|
||||||
|
if (!extension_loaded('dom')) :
|
||||||
|
printError("dom 모듈이 설치되지 않았습니다.");
|
||||||
|
exit;
|
||||||
|
endif;
|
||||||
|
if (!extension_loaded('mbstring') :
|
||||||
|
printError("mbstring 모듈이 설치되지 않았습니다.");
|
||||||
|
exit;
|
||||||
|
endif;
|
||||||
|
if (!extension_loaded('openssl')) :
|
||||||
|
printError("openssl 모듈이 설치되지 않았습니다.");
|
||||||
exit;
|
exit;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user