1.在使用$_POST[ ]或$_GET[ ]时,经常出现警告错误,在PHP语句中加入

error_reporting(E_ALL & ~E_NOTICE);  //提示所有错误,排出注意错误.

2.自动挂载类文件

function __autoload($className){

            include strtolower($className).".class.php";

}