今天一个命令行php程序,运行出现错误 dat e();时区设置的问题,需要通过php.ini来设置默认时区
OSX系统,命令行php,并没有启用php.ini 需要自己创建一个
sudo cp /private/etc/php.ini.default /private/etc/php.ini
本文来源:http://www.iamued.com/development/php/2053.html
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn