function inject_check($sql_str) { return eregi('select|insert|and|or|update|delete|\'|\/\*…
Functions to update arrays and get the values from an unique key. <?php function apc_ar…
<?php class Twitter { /** * Method to make twitter api call for the users timeline in X…
class AES_CBC_NoPadding { private $iv; private $key; private $blocksize; public function _…
<?php /** * 用于获取远程文件并缓存 * CurlCache v1.0 * Created by cr. * Date: 2015/12/03 */ //names…
<?php function numTrmb($num) { $d = array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", …
<?php $total=20;//红包总金额 $num=10;// 分成10个红包,支持10人随机领取 $min=0.01;//每个人最少能收到0.01元 $redpack…
<?php class datefl{ /** * 本周一 * @param int $timestamp 某个月的某一个时间戳,默认为当前时间 * @param strin…
<?php header('Content-type:text/html;charset=utf-8'); //读取图片文件,转换成base64编码格式 $image_fil…
error_reporting(E_ALL); function cache_shutdown_error() { $_error = error_get_last(); if (…
$msg = array(); $postStr = file_get_contents('php://input'); $msg = (array)simplexml_load_…
function DateRange ($begin,$end,$interval='M'){ $begin = new DateTime($begin); $end = new …