摘要:
<?php /** * MyPDO * @author Jason.Wei <jasonwei06@hotmail.com> * @license http://www.sunbloger.com/ * @version 5.0 utf8 */ class MyPDO { protected sta 阅读全文
摘要:
<?php //验证码工具类 class Captcha{ //属性 private $width; private $height; private $fontsize; private $pixes; private $lines; private $str_len; /* * 构造方法 * @ 阅读全文
摘要:
<?php //图片处理工具类 class Image{ //属性 private $thumb_width; //缩略图的宽 private $thumb_height; //错误属性 public $thumb_error; //构造方法 public function __construct( 阅读全文
摘要:
<?php //封装一个表单验证类 //中文验证、邮箱验证、电话号码、手机、QQ、身份证、(由字母、数字、下划线组成,不能以数字开头) header('content-type:text/html;charset=utf-8'); class Form{ /* //中文验证的方法 //参数:$str 阅读全文
摘要:
<?php //php中的魔术方法 header('content-type:text/html;charset=utf-8'); class Person{ public $name; protected $sex; private $salary; //构造方法,实例化对象是自动触发的方法 pu 阅读全文
摘要:
<?php/** * Project: Smarty: the PHP compiling template engine * File: SmartyBC.class.php * SVN: $Id: $ * This library is free software; you can redist 阅读全文
摘要:
<?php/** * Project: Smarty: the PHP compiling template engine * File: Smarty.class.php * SVN: $Id: Smarty.class.php 4848 2014-06-08 18:12:09Z Uwe.Tews 阅读全文
摘要:
<?php //判断用户是否是通过入口文件访问 if(!defined('ACCESS')){ echo '非法请求'; die; } //封装初始化类 class Application { //设置字符编码 private static function setCharset() { heade 阅读全文
摘要:
类: <?php //分页工具类 class Page{ /* * 获取分页字符串 * @param1 string $uri,分页要请求的脚本url * @param3 int $counts,总记录数 * @param4 int $length,每页显示的记录数 * @param5 int $p 阅读全文
摘要:
<?php //封装php中的单文件(图片)上传类 /* //参数1:$file 文件数组 5个属性值 name,type,size,tmp,error //参数2:文件保存的路径$path //参数3:文件上传允许的类型 $allow数组 $allow=array('image/jpeg','im 阅读全文
摘要:
封装mysql类 阅读全文
摘要:
封装mysqli类 阅读全文