?//目录操作基类class FileDirectory { var $servermode; var $serverpath; //web服务器目录 var $pagepath; //当前页目录 var $path; //当前目录 var $ffblk; //用于存储有关文件的信息 function FileDirectory() { set_time_limit(0); //设置网页运行时间,0不限 $this-serverpath = $GLOBALS[DOCUMENT_ROOT]."/"; $this-path = $this-pagepath = dirname(eregi_replace("//","/",$GLOBALS[SCRIPT_FILENAME]))."/"; if(eregi("Win32",getenv("SERVER_SOFTWARE"))) $this-servermode = "WIN32"; } function first_dir() { return dirname(eregi_replace("//","/",$GLOBALS[SCRIPT_FILENAM...[ 查看全文 ]2016-02-19 标签: