摘要:
第一种方法是 __autoload();在找不到类的时候自动调用这个方法<?php define('DIR',dirname(__FILE__).'/'); function __autoload($classname){ $filename = DIR.$classname.'.class.php'; if(file_exists($filename)){ include_once $filename; }else{ echo " no class file !";... 阅读全文
posted @ 2012-11-08 14:30
Zox
阅读(518)
评论(0)
推荐(0)
浙公网安备 33010602011771号