php 실행 로그를 찍었을 때 소스코드가 그대로 출력되는 경우가 있다.
서버에 설치는 되어있는데, 정상적으로 설치되어있는지 확인이 필요하다.
phpinfo()실행
phpinfo()를 먼저 실행해본다.
<?php
phpinfo();
?>
실행해보니 오류가 발생한다.
찾아보니 timezone을 설정하면 된다고 한다.
(설정 후 다시 업데이트)
http://idchowto.com/php-timezone-%EC%97%90%EB%9F%AC/
php timezone 설정 - 스마일서브 IDCHOWTO닷컴
Warning: phpinfo(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set()…
idchowto.com
'Development > PHP' 카테고리의 다른 글
익명 함수(Anonymous functions) (0) | 2023.01.13 |
---|---|
[PHP] 로그파일에 소스코드가 출력되는 경우 (2) | 2023.01.12 |
[PHP] cURL로 자동 로그인하기 (0) | 2022.12.20 |
php timestamp 13자리 변환하기 (0) | 2022.12.16 |
[fsockopen()오류] php_network_getaddresses: getaddrinfo failed (0) | 2022.12.16 |