php 948

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

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

2015-12-15 762

#PHP
500错误 详情打印

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

2015-12-15 343

#PHP
PHP解析微信支付结果

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

2015-12-15 425

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

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

2015-12-15 396

#PHP
熟悉web编程技术

<?php echo 22; ?>

2015-12-15 975

#PHP
php ping端口

error_reporting(0); header("content-Type: text/html; charset=utf-8"); set_time_limit(120);…

2015-12-15 415

#PHP
下载百度搜索图片

$brand = 'logo'; $url = "http://image.baidu.com/search/index?tn=baiduimage&ipn=r&c…

2015-12-15 333

#PHP
php多维数组转一维数组

function arrToOne($multi) { $arr = array(); foreach ($multi as $key => $val) { if( is_a…

2015-12-15 347

#PHP
历史上的今天接口api

http://www.ipip5.com/today/api.php?type=txt

2015-12-15 794

#PHP
PHP PDO操作mysql不注意的话依然存在SQL注入

<?php dbh = new PDO("mysql:host=localhost; dbname=demo", "user", "pass"); $dbh->setA…

2015-12-15 795

#PHP
php 人民币金额转大写程序

// 人民币金额转大写程序 class Ext_Num2Cny{ static $basical = array(0=>"零","壹","贰","叁","肆","伍","陆"…

2015-12-15 943

#PHP
php 获取远程文件的大小

// 获取远程文件的大小 function remote_filesize($url, $user = "", $pw = "") { ob_start(); $ch = curl…

2015-12-15 561
1 13 14 15 16 17 79