您好,欢迎光临! 推荐您使用Chrome浏览器访问本站。

Assigning the return value of new by reference is deprecated in

886 views
Assigning the return value of new by reference is deprecated in出现”Deprecated: Assigning the return value of new by reference is deprecated in“ 显示出来。这是因为5.3以后,不能使用”=&”符号,可以直接用”=”就可以了。 所以当出现这个问题后有两种解决方法: 1. 把php的版本降级到5.3以下,但后退的不是明智的选择。 2.  对程序中”=&”符号全部用”=” 代替。 原文:http://www.dengor.com/archives/1023.html

php动态更改post_max_size, upload_max_filesize等值

970 views
php动态更改post_max_size, upload_max_filesize等值新建.htaccess文件到网站跟目录,内容如下: <IfModule mod_php5.c> php_value upload_max_filesize 2000M php_value post_max_size       2000M </IfModule> 注意: post_max_size,upload_max_filesize无法用ini_set进行设置,如下语句不会成功执行。 ini_set(‘post_max_size’,’1024M’); ini_set(‘upload_max_filesize’,’1024M’); 更改php.ini的值,是乎也不成。 upload_max_filesize=2048M post_max_size = 2048M 参考:http://hi.baidu.com/tianhuimin/item/11c965f......

Warning: date(): It is not safe to rely on the system’s timezone settings.

908 views
Warning: date(): It is not safe to rely on the system’s timezone settings.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 ‘Asia/Hong_Kong’ for ‘HKT/8.0/no DST’ instead in… 解决方法: 一、在页头使用date_default_timezone_set()设date_default_timezone_set......