Fork me on github
摘要: 1.第一种方法0){//Checkwhetherthebrowser/gatewaysaysitacceptsWML.$br="WML";}else{$browser=isset($_SERVER['HTTP_USER_AGENT'])?trim($_SERVER['HTTP_USER_AGENT'... 阅读全文
posted @ 2015-06-23 14:27 Champion-水龙果 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: FileUpload.class.php其中用到了两个常量,可在网站配置文件中定义:define('ROOT_PATH',dirname(__FILE__));//网站根目录、define('UPDIR','/uploads/');//上传主目录error=$_FILES[$_file]['erro... 阅读全文
posted @ 2015-06-23 10:04 Champion-水龙果 阅读(187) 评论(0) 推荐(0) 编辑
摘要: total=$_total?$_total:1;$this->pagesize=$_pagesize;$this->pagenum=ceil($this->total/$this->pagesize);$this->page=$this->setPage();$this->limit="LIMIT"... 阅读全文
posted @ 2015-06-23 09:59 Champion-水龙果 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1、实现SMTP协议的类dsmtp.cls.php:socket=socket_create(AF_INET,SOCK_STREAM,SOL_TCP);$this->host=$host;$this->user=$user;$this->pwd=$pwd;$this->port=$port;$thi... 阅读全文
posted @ 2015-06-23 09:34 Champion-水龙果 阅读(1370) 评论(0) 推荐(0) 编辑
Champion-水龙果