php 948

#PHP
PHP读取网卡MAC地址

class GetMacAddr{ var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function G…

2015-12-17 913

#PHP
万能的分页类

<?php /* * To change this template, choose Tools | Templates * and open the template in…

2015-12-17 769

#PHP
自定义对称 加密和解密

function selfEncode($str, $k) { $encoded = ''; $len = strlen($str); $lk = strlen($k); for(…

2015-12-17 298

#PHP
ShopNC QQ 互联修正,100010 错误处理

<?php /** * 入口文件 * * 统一入口,进行初始化信息 * * * @copyright Copyright (c) 2007-2013 ShopNC Inc. …

2015-12-17 492

#PHP
通过身份证号获取属相、星座、性别

// 根据身份证号,自动返回对应的星座 function get_xingzuo($cid) { $cid = getIDCard($cid); if (!isIdCard($ci…

2015-12-17 671

#PHP
wordpress 3.6 才引入的处理输入转义字符的

/** * Add slashes to a string or array of strings. * * This should be used when preparing …

2015-12-17 650

#PHP
判断是否是身份证号

function isIdCard($number) { // 检查是否是身份证号 $number = getIDCard($number); // 转化为大写,如出现x $num…

2015-12-17 481

#PHP
PHP把下载地址转换为迅雷、快车、QQ旋风下载链接

function zhuanhuan($url){ if(empty($url)) return $result; $urlodd=explode('//',$url,2); $h…

2015-12-17 208

#PHP
php读取和保存base64编码的图片内容

<?php header('Content-type:text/html;charset=utf-8'); //读取图片文件,转换成base64编码格式 $image_fil…

2015-12-15 758

#PHP
500错误 详情打印

error_reporting(E_ALL); function cache_shutdown_error() { $_error = error_get_last(); if (…

2015-12-15 340

#PHP
PHP解析微信支付结果

$msg = array(); $postStr = file_get_contents('php://input'); $msg = (array)simplexml_load_…

2015-12-15 421

#PHP
两个日期之间的所有时间

function DateRange ($begin,$end,$interval='M'){ $begin = new DateTime($begin); $end = new …

2015-12-15 394
1 11 12 13 14 15 79