摘要:
<?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类 阅读全文