写php是遇到的一个小问题
2015-05-17 21:27
267 查看
写php是遇到的一个小问题
今天在写php时偶然间遇到的一个问题,,以前没有遇到过,当然以前也没有写过php代码,,在写关于日期时间函数时,,总是弹出warning:
strtotime(): 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 ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead
于是就找原因啊,,找了好长时间,终于找到了(新手的悲哀啊),,根据它的提示,,找到是在php目录下的php.ini文件的问题,解决方法如下:
Ok;;;
今天在写php时偶然间遇到的一个问题,,以前没有遇到过,当然以前也没有写过php代码,,在写关于日期时间函数时,,总是弹出warning:
strtotime(): 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 ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead
于是就找原因啊,,找了好长时间,终于找到了(新手的悲哀啊),,根据它的提示,,找到是在php目录下的php.ini文件的问题,解决方法如下:
Ok;;;
相关文章推荐
- php关于使用iconv(...)函数对字符进行中文转换时,遇到的一个问题
- PHP的日期时间函数整理(包括一个偷懒遇到的问题)
- 初接触php,遇到一个低级问题
- Centos 中安装PHP5.6.19遇到的一个Libiconv的问题
- PHP 正则 中遇到的一个小问题, 卡死,执行慢
- 安装php遇到的一个问题
- 今天遇到一个问题,很纠结include(authenticate.php): failed to open stream: No such file or directory
- 遇到的一个php过滤问题
- php+ajax中遇到的一个问题
- php 取地址&符号使用遇到的一个问题
- 安装Piwik时遇到的一个奇怪的关于PHP参数问题的解决办法
- php+ajax中遇到的一个问题
- php+ajax中遇到的一个问题
- 安装PHP5.6.19遇到的一个Libiconv的问题
- 【PHP配置】 配置XDEBUG过程中遇到的一个问题
- nginx+php遇到的一个问题
- 从 PHP5.2 升级到 PHP7.1 遇到的一个函数参数问题
- 工作中遇到的一个相当有意思的问题(关于Windows和linux环境下执行PHP,ajax,javascript,flexigrid的一个莫名异常)
- Remoting方法重载遇到的一个问题
- 今天遇到一个问题,获取properties配置文件中的中文时会出现乱码的情况