php 948

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

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

2015-12-17 302

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

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

2015-12-17 495

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

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

2015-12-17 674

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

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

2015-12-17 656

#PHP
判断是否是身份证号

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

2015-12-17 484

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

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

2015-12-17 210

#PHP
php 阿拉伯数字转中文大写金额

// 阿拉伯数字转中文大写金额 function NumToCNMoney($num,$mode = true,$sim = true){ if(!is_numeric($num)…

2015-12-17 634

#PHP
php 阿拉伯数字转中文汉字

//去掉数字段前面的0 function del0($num){ return "".intval($num); } //单个数字变汉字 function n2c($x){ $ar…

2015-12-17 971

#PHP
php使用Snoopy.class.php做http get post请求

<?php $url = "http://www.taoav.com"; include("snoopy.php"); $snoopy = new Snoopy; $snoo…

2015-12-15 807

#PHP
php mvc框架

<?php $endrun=false; define("CONTROLLERS_DIR",dirname(__FILE__).'/controllers/'); defin…

2015-12-15 452

#PHP
将360 浏览器导出的favdb的sqlite数据库文件转换为html

<?php $book_mark_name = 'book_mark.html'; $content = file_get_contents('tb_fav.json'); …

2015-12-15 339

#PHP
PDO链式调用的封装类

<?php /** * PDO链式调用的封装 * 使用预处理方式真正防止SQL注入 * 简化常用查询 * 要使用PDO高级功能, 可以通过GetConnecttion()返回…

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