1.在使用$_POST[ ]或$_GET[ ]时,经常出现警告错误,在PHP语句中加入
error_reporting(E_ALL & ~E_NOTICE); //提示所有错误,排出注意错误.
2.自动挂载类文件
function __autoload($className){
include strtolower($className).".class.php";
}
转载于:https://blog.51cto.com/webos/614688
1.在使用$_POST[ ]或$_GET[ ]时,经常出现警告错误,在PHP语句中加入
error_reporting(E_ALL & ~E_NOTICE); //提示所有错误,排出注意错误.
2.自动挂载类文件
function __autoload($className){
include strtolower($className).".class.php";
}
转载于:https://blog.51cto.com/webos/614688