asp网站上传图片
显示:如图所示
服务器错误
500 - 内部服务器错误。
您要查找的资源有问题,无法显示。
这边登录服务器尝试开启详细的报错,尝试上传时页面返回php 程序告警信息,如附件。看提示是php 程序时区设置问题,您可以调整下php 程序设置的时区信息,与本地使用时区保持一致,然后再操作看是否正常。
PHP Warning: date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in E:\www\ttjgcom\admin\include\kindeditor\php\upload_json.php on line 145
PHP Warning: date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in E:\www\ttjgcom\admin\include\kindeditor\php\upload_json.php on line 152
重点来了,具体解决方法:
在服务器找到php程序中的php.ini,注意复制一下备个份
用文件打开-搜索-date.timezone
[Date]
; Defines the default timezone used by the date functions
;date.timezone =
修改成
[Date]
; Defines the default timezone used by the date functions
date.timezone =PRC
前面分号是注释
其中PRC是“中华人民共和国”!
最后 重启服务器 完美解决,网站可以正常上传图片了!