代碼事下:
- I:/>cd www
- I:/www>php a.php
- PHP Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and great
- er in Unknown on line 0
- Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in
- Unknown on line 0
- /*=================================================
- ====Name:dedecms 5.7 getshell ====
- ===================================================
- ====Usage:php dede.php ====
- ===================================================
- ====Team:C0dePlay Team ====
- ===================================================
- ====Author: Yaseng ====
- ====Date: 2012-06-15 01:35:00 ====
- ===================================================*/
- I:/www>
原因分析:
PHP 5.3 開始,配置文件 php.ini 中的一些配置將會在 PHP 執行時顯示過時警告,這些配置將在 PHP6中不再存在,相關功能也將關閉。
- define_syslog_variables
- register_globals
- register_long_arrays
- safe_mode
- magic_quotes_gpc
- magic_quotes_runtime
- magic_quotes_sybase
解決問題很簡單
只需要在php.ini中,做如下的設置即可。
register_globals = Off
新聞熱點
疑難解答