에 경고, 다음과 같은 경고를받은 date.timezone :은 phpinfo 표시는 PHP 정보 테이블에 포함, 내가 MAMP에서은 phpinfo() 함수를 실행 MAMP
Warning: phpinfo() [function.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() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /Applications/MAMP/bin/mamp/phpinfo.php on line 2
php.ini 파일에서 date.timezone 파일이 'America/New_York'로 설정되어 있고 경고는 phpinfo 테이블에 반영된 실제 설정보다 세 줄 밖에 없습니다!
누군가이 문제를 해결하는 방법을 설명해 주시겠습니까?
확인
date.timezone php.ini 파일의 경로는, 때때로, 당신이 사용을 php.ini 파일은 동일하지 않습니다. – artragis
감사합니다 @artragis! MAMP가 실제로 사용하고있는 php.ini의 경로는 어디에서 찾을 수 있습니까? –
cli에서 phpinfo() 함수를 사용하면 웹에서 php --ini를 사용할 수 있습니다. – artragis