//这里是绝对路径
set_include_path(implode(PATH_SEPARATOR, array(
realpath('/opt/www/wcms/lib'),
get_include_path())));
//这个方法
function __autoload($className)
{
//如果加这个检测, 因为此文件不在当前目录下,它就会检测不到文件存在,
//但include是能成功的
require_once $className . '.php';
}
$erpSer=new ERPService();
$erpSer->batchDeliver();