?php // class PHP_timer开始 class PHP_timer // 用来收集脚本执行过程中的信息 var points = array(); // 在脚本的开始处调用这个函数 function start() // 请看后面的addmarker函数 this-addmarker(Start); // end function start() // 在脚本的结束处调用这个函数
? class timer var StartTime = 0; var StopTime = 0; var TimeSpent = 0; function start() this-StartTime = microtime(); function stop() this-StopTime= microtime(); function spent() if (this-TimeSpent) return this-TimeSpent; else StartMicro = substr(thi
c_smtp_client.php ?php /* smtp client class */ class c_smtp_client var connection; var server; var elog_fp; var log_file='./smtp_client.log'; var do_log=true; var need_auth=true; var username; var password; // 构造器 function c_smtp_client(server=''
?php class myftp var connector; var getback; function connect(ftp_server, uname, passwd) // Baut grundlegende FTP Connection auf this-connector = @ftp_connect(ftp_server); this-login_result = @ftp_login(this-connector, "uname", "passwd"); if ((!this