随笔分类 -  PHP程序员

摘要://进行数据分页 /* @f_page 第一分页 @s_page 第二分页 @total_sql 总数sql @index_sql 列表sql @order 排序sql @select 查询sql */ function get_page($f_page,$s_page="inde... 阅读全文
posted @ 2016-09-05 16:40 方白衣 阅读(8027) 评论(0) 推荐(0)
摘要:Function: //server: "http://192.168.1.110/")); //This uri is your SERVER ip. $soap->addFunction('minus_func'); //Register the function $soap->add... 阅读全文
posted @ 2016-08-27 17:03 方白衣 阅读(200) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-08-27 16:59 方白衣 阅读(196) 评论(0) 推荐(0)
摘要:\"])*$/',$url)) { return true; } else { return false; } } /** * 检查电子邮件格式 * * 检查电子邮件格式 * * @access public * @param email 电子邮件 ... 阅读全文
posted @ 2016-08-27 16:57 方白衣 阅读(527) 评论(0) 推荐(0)
摘要:conn=new PDO('mysql:host='.$this->hostname."dbname=".$this->dbname,$this->username,$this->password); //设置编码 $this->conn->exec("set names utf8"); } ... 阅读全文
posted @ 2016-08-27 16:56 方白衣 阅读(211) 评论(0) 推荐(0)
摘要:conn=new mysqli($this->hostname,$this->username,$this->password,$this->dbname); if(mysqli_connect_errno()) { echo mysqli_connect_error(); ... 阅读全文
posted @ 2016-08-27 16:55 方白衣 阅读(253) 评论(0) 推荐(0)
摘要:hostname,$this->username,$this->password); mysql_select_db($this->dbname,$conn); if(!$conn) { echo $conn->error(); ... 阅读全文
posted @ 2016-08-27 16:54 方白衣 阅读(200) 评论(0) 推荐(0)
摘要:class LCS { var $str1; var $str2; var $c = array(); /*返回串一和串二的最长公共子序列 */ function getLCS($str1, $str2, $len1 = 0, $len2 = 0) { $this->str1 = $str1; $this->str2 =... 阅读全文
posted @ 2016-08-27 16:52 方白衣 阅读(1667) 评论(0) 推荐(0)
摘要:$this->dbname,"CharacterSet" => "UTF-8","UID"=>$this->username,"PWD"=>$this->password); $this->conn=sqlsrv_connect($this->hostname,$constr); ... 阅读全文
posted @ 2016-08-27 16:51 方白衣 阅读(1117) 评论(0) 推荐(0)
摘要:<?php require_once 'PHPExcel.php'; require_once 'libs/IOFactory.php'; require_once 'libs/Excel5.php'; require_once 'Common_Oper.php'; class Excel_Oper 阅读全文
posted @ 2016-08-27 16:47 方白衣 阅读(270) 评论(0) 推荐(0)