<?php echo '<html> <head> <title>IP地理位置接口</title></head></html>'; //以上内容输出页面标题 if (!empty($_GET["ip"])){ //如果接口访问时带了IP参数,则查询参数中的地址 $local=$_GET["ip"]; } else { $local=$_SERVER["REMOTE_...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery jQuery click() 事件</title> <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script> <!-- Bootstrap CSS --> <link href="https:...
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="fee_detail.xlsx"'); header('Cache-Control: max-age=0'); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); $objWriter->...
序言 php导出数据到csv是一种很常见的功能,且csv相比于excel文件有其一定的优势,首先csv对数据的行数没有限制,但是excel对数据的行数有一定的限制,因此,csv文件对于导出大量的数据来说很方便。相关函数set_time_limit (0); //取消脚本运行时间的限制ini_set('memory_limit', '256M');//设置php内存限制设置header头$fp = fopen("php://output", "w");//打开php数据输出缓冲区,并返回一个句柄mb_convert_variables('GBK', 'UTF-8', 数据);//将数据的...
package main import ( "bufio" "bytes" "fmt" "golang.org/x/text/encoding/simplifiedchinese" "golang.org/x/text/transform" "io" "io/ioutil" "os" "path" "path/filepath" "ru...
//JS过滤字符function filterstr(str) {var msg = str.replace(/投票/g, ''); msg = msg.replace(/toupiao/, ''); msg = msg.replace(/刷票/ig, ''); msg = msg.replace(/微信/ig, ''); msg = msg.replace(/vx/ig, ''); msg = msg.replace(/wx/ig, ''); msg = msg.replace(/唰/ig, ''); msg = msg.replace(/lovegood112/ig, ''); ms...
@echo off SC config Dnscache start= demand SC start Dnscache nslookup www.xiongmaodaili.com attrib -R C:\windows\system32\drivers\etc\hosts @echo 47.97.243.163 www.xiongmaodaili.com >> C:\windows\system32\drivers\etc\hosts @echo 47.97.243.206 route.xiongmaodaili.com >> C:\windows\s...
@echo off netsh int ipv6 set prefix ::/96 50 0 netsh int ipv6 set prefix ::ffff:0:0/96 40 1 netsh int ipv6 set prefix 2002::/16 35 2 netsh int ipv6 set prefix 2001::/32 30 3 netsh int ipv6 set prefix ::1/128 10 4 netsh int ipv6 set prefix ::/0 5 5 netsh int ipv6 set prefix fc00::/7 3 13 netsh int...
@echo off SC config Dnscache start= demand SC start Dnscache netsh interface ipv4 set dns "本地连接" static 114.114.114.114 primary netsh interface ip add dns "本地连接" 223.5.5.5 2 netsh interface ipv4 set dns "以太网" static 114.114.114.114 primary netsh interface ip add ...
设置常用的content-type://定义编码 header( 'Content-Type:text/html;charset=utf-8 '); //Atom header('Content-type: application/atom+xml'); //CSS header('Content-type: text/css'); //Javascript header('Content-type: text/javascript'); //JPEG Image header('Content-type: image/jpeg'); //JSON header('...