- 博客(10)
- 收藏
- 关注
转载 正则替换图片
$parrent = "/(<img href|<img src)=([\"|']?)([^\"'>]+.(jpg|JPG|jpeg|JPEG|gif|GIF|png|PNG))/i"; $module_content[$k]['content...
2017-10-20 09:29:00 262
转载 php curl 跨域上传图片
上传: <body> <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file" /> <input...
2017-02-09 17:41:00 241
转载 jQuery ajax 跨域请求
$.ajax( { type:'get', url : 'http://h5count.com/addPv/addDayPv?id='+id+'&date='+date+'&callback=callback', ...
2016-11-30 09:58:00 84
转载 thinkphp HTML页面循环输出 和if判断
<volist name="result" id="vo"> <div> <span><font color="blue"><a>{Weiyuntian:$vo.title}</a>...
2016-06-20 10:24:00 1071
转载 addpv getpv
<?php public function addPv($val){ if(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE 8.0")) $useragent="Internet Explorer 8.0"; ...
2016-03-31 15:25:00 158
转载 浏览量添加
<script type="text/javascript"> //*****************增加浏览量****************** $(document).ready(function(){ var url= PREFI...
2016-03-23 11:55:00 179
转载 thinkphp 验证码
// 验证码生成 publicfunctionverify_c(){ $Verify=new\Think\Verify(); $Verify->fontSize=18; $Verify->length=...
2016-03-17 14:24:00 125
转载 ajax 无刷新上传 跨域
//ajax 文件上传 表单无刷新提交 var formData = new FormData($( "#login" )[0]); $.ajax({ url: 'http://u.xiyou.cn/videoupload.php', ...
2016-03-17 12:03:00 75
转载 curl post 请求
$url = "http://localhost/web_services.php"; $post_data = array ("username" => "ndc""); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL...
2016-03-17 11:58:00 125
转载 thinkphp upload类 图片上传到本地 生成缩略图 再 ftp上传
public function upload(){ if(intval(session("userid"))==0) { header('Content-type: text/json'); header('...
2016-03-17 11:40:00 178
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人