自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(50)
  • 收藏
  • 关注

转载 php远程下载文件并保存到指定路径

<?phpfunction getFile($url, $save_dir = '', $filename = '', $type = 0) { if (trim($url) == '') { return false; } if (trim($save_dir) == '') { $save_dir = '...

2015-07-04 21:49:00 656

转载 二维码的名片格式

二维码的名片格式BEGIN:VCARDFN:lufei //姓名TITLE:position //职务ORG:jobsdfb(rms) //公司(部门)TEL;CELL:1581403 //手机TEL;WORK:0755-111...

2015-06-29 16:05:00 127

转载 百度随心听

<?php /* 频道列表url fm.baidu.com/dev/api/?tn=channellist */ $url1="http://fm.baidu.com/dev/api/?tn=playlist&id=public_xinqing_shanggan"; $res1=json_decode(file_get...

2015-06-12 15:22:00 186

转载 linux 命令

重启ftp/etc/init.d/pureftpdrestart转载于:https://www.cnblogs.com/yutaoyao/p/4543184.html

2015-06-01 08:55:00 93

转载 php 汉字转拼音

<?php//chinese_to_abc.class.phpclass ChineseSpell {//注意仅支持:GBK,故传入参数前须转码 /** * @var array $chineseSpellList 拼音编码对应表 * @access private */ private $chineseSpellList ...

2015-05-22 15:16:00 76

转载 JQuery 输入城市 提示(445个)

<style><!-- #suggest{opacity: 0.9;} .gray{color:gray;} .ac_results {background:#fff;border:1px solid #7f9db9;position:absolute;z-index:10000;disp...

2015-05-22 15:03:00 101

转载 php 函数

字符串类型验证ctype_alnum— 做字母和数字字符检测ctype_alpha— 做纯字符检测ctype_cntrl— 做控制字符检测ctype_digit— 做纯数字检测ctype_graph— 做可打印字符串检测,空格除外ctype_lower— 做小写字符检测ctype_print— 做可打印字符检测ctype_punct— ...

2015-05-18 16:17:00 81

转载 接口大全

谷歌搜索建议接口 http://209.85.228.22/complete/search?client=hp&hl=zh-CN&sugexp=msedr&gs_rn=64&gs_ri=hp&cp=3&gs_id=3wx&q=关键字&xhr=t搜狗搜索建议接口 http://w.sugg.sogou.com/sugg...

2015-04-27 13:46:00 93

转载 谷歌搜索自动补全

<?php header("Content-type: text/json; charset=utf-8"); if(isset($_POST['w'])){ $word=$_POST['w']; }else if(isset($_GET['w'])){ $word=$_GET['w']; }else{...

2015-04-27 13:28:00 107

转载 php dunp

function dump($var, $echo=true,$label=null, $strict=true){ $label = ($label===null) ? '' : rtrim($label) . ' '; if(!$strict) { if (ini_get('html_errors')) { $o...

2015-04-27 12:15:00 75

转载 php判断远程图片是否防盗链

function checkpic($url){ $curl = curl_init($url);//设置url curl_setopt($curl, CURLOPT_REFERER, 'http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"]);//伪装referer(正常在地址栏输入网址能...

2015-04-10 13:40:00 112

转载 php获取远程图片url生成缩略图的方法

getimg.php<?php /** **函数:调整图片尺寸或生成缩略图 *返回:True/False *参数:* $Image 需要调整的图片(含路径) * $Dw=450 调整时最大宽度;缩略图时的绝对宽度 * $Dh=450 调整时最大高度;缩略图时的绝对高度 * $Type=1 1,调整尺寸; 2,生...

2015-04-10 12:14:00 184

转载 qq zone g_tk

//G_tk计算function getGTK($skey){ $hash = 5381; for($i=0;$i<strlen($skey);++$i){ $hash += ($hash << 5) + utf8_unicode($skey[$i]); } return $hash & 0x7fffffff...

2015-03-26 19:50:00 121

转载 zend studio aptana

http://blog.csdn.net/democreen/article/details/6125623Eclipse开发JQuery环境设置(Spket)文章提到过JQuery提示插件,但是经过多次的试验不尽人意,主要是其提示效果不理想,而且配置成功的概率非常的小。经过同事的推荐使用aptana插件还不错其代码提示功能非常的强大,而且aptana...

2015-03-26 19:29:00 86

转载 qq音乐接口

$api_url="http://open.music.qq.com/fcgi-bin/fcg_weixin_music_search.fcg?perpage=30&curpage=1&w=$name&jsonCallback=searchCallback&callback=searchCallback";转载于:https://www.cnblogs...

2015-03-26 10:13:00 107

转载 function https_request

//https请求(支持GET和POST) function https_request($url, $data = null) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, ...

2015-03-19 11:04:00 191

转载 Eclipse 汉化

http://www.eclipse.org/babel/downloads.phphttp://download.eclipse.org/technology/babel/update-site/R0.12.1/luna转载于:https://www.cnblogs.com/yutaoyao/p/4317458.html

2015-03-06 10:26:00 55

转载 php 邮箱替换*

$emailArr = explode("@",$email); if($emailArr[0]){ if($emailArr[0]>3){ $leng=3; }else{ $leng=1; } ...

2015-03-05 10:37:00 171

转载 获取顶级域名函数

function parseHost($httpurl) { $httpurl = strtolower( trim($httpurl) ); if(empty($httpurl)) return ; $regx1 = '/https?:\/\/(([^\/\?#]+\.)?([^\/\?#-\.]+\.)(com\.cn|org\.cn|ne...

2015-03-02 11:52:00 108

转载 weixin oauth api 使用

<?php <?phpSession_start();/* * 微信端限制 */$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : ...

2015-03-02 10:34:00 90

转载 qq互联

<!-- 登录按钮--><a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id={$qq_appid}&redirect_uri=http://{$_SERVER['HTTP_HOST']}{:U('Index/login')}&s...

2015-02-14 15:02:00 102

转载 php 生成文字图片

<?phpclass textPNG { private $font = './MSYH.TTF'; // 默认字体. 相对于脚本存放目录的相对路径. private $msg = "undefined"; // 默认文字. private $width = ""; // 默认宽度. private $size = 18; private $rot = ...

2015-02-11 15:23:00 95

转载 Zen Coding

http://emmet.io/eclipse/updates/site.xmlhttp://www.liuhehu.com/?p=180http://www.qianduan.net/zen-coding-a-new-way-to-write-html-code.html展开缩写E元素名称(div, p);E#id使用id的元素(div#content...

2015-02-06 10:24:00 106

转载 html 超出隐藏

span标签 当内容超出 强制不断行 自动换行white-space:nowrap;white-space:norma;display:inline-block;超出自动隐藏 英方不断行显示 (必须在块元素内)overflow:hidden;white-space:nowrap;而如果希望在文字后面加上个...,就可以使用text-overflow:ellipsis;一般的主流浏览...

2015-02-06 09:22:00 84

转载 php获取网站ico

/* * 获取网站logo */function get_url_ico($url){ $url_arr=parse_url($url); if(!$url_arr['scheme']){ $url.="http://"; } $url_arr=parse_url($url); $url=$url_arr...

2015-02-03 11:04:00 179

转载 thinkphp curd

public function edit_vip(){ if($_GET['ac']=="add"){ $user_vip=D('user_vip'); if($user_vip->create()){ if($user_vip->add()...

2015-01-30 10:12:00 54

转载 ajaxFileUpload ajax 文件上传 php

<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script> <script src="http://files.cnblogs.com/files/yutaoyao/ajaxFileUpload.js"></script>...

2015-01-29 13:59:00 102

转载 Linux 语句记录

1.开关机shutdown -h now 立刻进行关机shutdown -r now 现在重新启动计算机reboot 现在重新启动计算机logout 注销2. vi编辑器vi 文件名 用vi打开文件输入i [进入到插入模式]输入esc键[进入命令模式]输入 wq 保存退出 q! ...

2015-01-19 21:57:00 47

转载 网盘外链集合(360云盘)

http://pan.cpp01.com/转载于:https://www.cnblogs.com/yutaoyao/p/4227768.html

2015-01-16 09:48:00 141

转载 免上传音乐外链(QQ音乐)

方法一:使用QQ音乐客户端制作方法方法二:免下QQ音乐客户端制作方法方法一:使用QQ音乐客户端制作方法 1.首先打开qq音乐客户端查看歌曲信息2.然后复制id后面的数字把这些数字复制到http://tsmusic24.tc.qq.com/的后面最后的格式如下图重要:(数字后面需要手动添加.mp3)然后把这个链接复制到空间就...

2015-01-16 09:33:00 467

转载 韩顺平Linux视频教程—笔记(全)

Linux操作系统学习linux的特点优点:1、免费的/开源的系统2、支持多线程/多用户的系统3、安全性好4、对内存和文件管理优越linux体积最少只需要内存4M,由于小所以可以做嵌入式开发缺点:操作相对困难Linus于1991年至1994年将unix的微型版minis加以开发出linux现在redhat红帽子、BSD、SUN等公司进行再...

2015-01-15 15:30:00 506

转载 韩顺平linux视频笔记

Linux特别重要的命令:1.shutdown–h now立即关机2.shutdown –r now立即重启3.reboot重启4.pwd显示当前目录的路径5.useradd ***添加一个用户6.passwd username设置username的密码,不加...

2015-01-15 15:24:00 78

转载 html css3 锚点动画向上

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> &...

2015-01-15 11:11:00 210

转载 linux apm环境搭建

1.1安装Apacheyuminstallhttpdhttpd-devel安装完成后,用/etc/init.d/httpdstart启动apache设为开机启动:chkconfighttpdon1.2安装mysql1.2.1yuminstallmysqlmysql-servermysql-devel同样,完成后,用/etc/init.d/mysql...

2015-01-14 12:29:00 442

转载 php 二维数组搜索

/* * $array带查询的数组 * $key 键名 * $value 键值 * return 键名对应的那条数据 */ function searchArray($array,$key,$value){ foreach($array as $key_i=>$value_i){...

2015-01-14 12:07:00 116

转载 自适应注册登录页(无JS)

<!DOCTYPE html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1,ma...

2015-01-07 19:28:00 451

转载 php获取本地IP

<?phpfunction get_client_ip() { if ($_SERVER['REMOTE_ADDR']) { $cip = $_SERVER['REMOTE_ADDR']; } elseif (getenv("REMOTE_ADDR")) { $cip = getenv("REMOTE_ADDR");...

2014-12-24 13:36:00 85

转载 Linux常用命令大全

系统信息arch 显示机器的处理器架构(1)uname -m 显示机器的处理器架构(2)uname -r 显示正在使用的内核版本dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)hdparm -i /dev/hda 罗列一个磁盘的架构特性hdparm -tT /dev/sda 在磁盘上执行测试性读取操作cat /proc/cpuinfo 显示CPU...

2014-12-22 19:53:00 81

转载 php excel

/** * 导出数据为excel表格 *@param $data 一个二维数组,结构如同从数据库查出来的数组 *@param $title excel的第一行标题,一个数组,如果为空则没有标题 *@param $filename 下载的文件名 *@examlpe $stu = M ('User'); $...

2014-12-16 09:16:00 67

转载 html全屏背景图css写法

<div id="web_bg" style="position:absolute; width:100%; height:100%; z-index:-1">   <img style="position:fixed;" src="www.xxxx.com/images/5.jpg" height="100%" width="100%" /> &lt...

2014-12-15 11:13:00 151

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除