免费的SEO教程和SEO资料平台

SEO基础教程

SEO进阶教程

budgetvm添加多IP后,出现网络无法PING通

chkconfig NetworkManager off service NetworkManager stop service network restart

2018-12-31 01:34:20 记录

php处理站长工具下载的关键词列表

<?php $txt = 'key.txt'; $arr = file($txt); foreach($arr as $val){ $ex = explode(' ',$val); if(stripos($url,'url规则') !== false){ $keyword = $ex[0]; file_put_contents('keyword.txt',$keyword."\r\n",FILE_APPEND); } } ?>

2018-06-09 00:19:48 PHP编程

php去除空行和重复行

<?php delRepeatRow('key.txt'); function delRepeatRow($filePath) { $fileArr = file($filePath); $newFile = "整理过的文件:\n 时间:" . date('Y-m-d H:i:s') . "\n----------------------------\n"; foreach(array_unique($fileArr) as $fa){ ...

2018-04-02 21:51:25 记录

反向代理可能用到的

//只允许通过HTTP_X_FORWARDED_HOST的域名访问 <?php $host = $_SERVER['HTTP_X_FORWARDED_HOST']; if($host != 'www.baidu.com'){ header("HTTP/1.1 404 Not Found"); header("Status: 404 Not Found"); echo '访问错误'; exit; } //内容较多时使用 function getRa...

2018-03-21 03:44:34 PHP编程

linux下解压缩

压缩 tar -cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpg tar -czf jpg.tar.gz *.jpg   //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gz tar -cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用bzip2压缩,生成一个bzip2压缩过的包,命名为j...

2018-03-18 03:08:30 记录

centos 7 添加IP

1. ip addr 查看IP inet 192.168.1.150/24 brd 192.168.1.255 scope global enps3 可以看到网卡名为 enps3 2.进入/etc/sysconfig/network-scripts/ cat /etc/sysconfig/network-scripts/ifcfg-enps3 vi /etc/sysconfig/network-scripts/ifcfg-enps3 里面有IPADDR="123.123.123.123" 在下面添加 IPADDR1="124.124.124...

2018-03-17 22:42:57 记录

Teleport Ultra下载后出现的tppabs等替换规则

tppabs="h[^"]*"替换为空 /\*tpa=.*\*/替换为空 <a href="javascript:if\(confirm\(.*tppabs="(.*)">(.*)</a>替换为<a href="$1">$2</a> <a href="(.*)" tppabs="(.*)">替换为<a href="$2"> href="javascript:if\(confirm\('(.*)(....

2017-10-18 16:34:32 记录

linux下备份、导入MYSQL

备份MYSQL mysqldump -u root -p dbname > /home/wwwroot/mysql.sql 导入MYSQL mysql -u root -p dbname < /home/wwwroot/mysql.sql

2017-10-18 16:01:44 记录

删除MYSQL重复记录

delete from official_accounts where mingcheng in (select mingcheng from ( select mingcheng from official_accounts group by mingcheng having count(mingcheng)>1) a) and id not in ( select min(id) from (select min(id) as id from official_accounts group by mingcheng having count(mingcheng)>1 ) b)

2017-08-07 23:04:11 记录

php采集页面的一个比较好的函数

function HttpVisit($weburl) { $remote_data = NULL; if (function_exists('curl_exec')) { $curl = @curl_init(); @curl_setopt($curl, CURLOPT_URL, $weburl); @curl_setopt($curl, CURLOPT_HEADER, 0); @curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 30); @curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1)...

2017-07-05 17:40:46 PHP编程

常用工具箱

编辑推荐

热点阅读

随机推荐