/** * * 中文字符串截取 * @param string $string * @param int $sublen * @param int $start * @param …
//https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)? //PHP Example: Automatically link UR…
/** * 图片缩放水印类 * */ class cls_photo { protected $waterrate = 0.2; //水印图标在图片上的比例 protected $…
<?php class Page { private $total; //总记录 private $pagesize; //每页显示多少条 private $limit; /…
有时候为了定时去调接口,需要程序自动运行。从网上搜到有两种方法可以实现 1、ignore_user_abort() ignore_user_abort()函数搭配set_time_…
<?php $host="localhost"; $uname="database username"; $pass="da…
PHPMailer 的官方网站:http://phpmailer.worxware.com/ PHPMailer 最新类库下载地址:【点击下载】 PHPMailer GitHub …
<?php /** * 常用工具类 * author Lee. * Last modify $Date: 2012-8-23 */ class Tool { /** * js…
非常简单好用的随机密码生成,喜欢任何字符自己都可以加 function rand_word($num=12){ $re=''; $list="abcdefghijklmn…
<?php function createThumbnail($imageDirectory, $imageName, $thumbDirectory, $thumbWidt…
function random_readable_pwd($length=10){ // the wordlist from which the password gets gen…
class User { static function getInstance() { if (self::$instance == NULL) { // If instance…