网站首页 > 基础教程 正文
第一步:
打开“php.ini”,搜索“cur”,将前面的分号去掉,重启服务器。
第二步:
进入百度站长工具,选择“链接提交”,选择php推送。
代码:
$urls = array(
'链接地址',
'链接地址',
);
$ch = curl_init();
$options = array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("\n", $urls),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
echo $result;
?>
将上述代码,复制,创建一个php页面,粘贴。命名为push.php,将它上传到根目录。
检验方法:域名/push.php
- 上一篇: PHP漏洞之跨网站请求伪造(php跨站脚本攻击)
- 下一篇: 2022年底总结,温暖和激励自己的文案
猜你喜欢
- 2025-06-09 PHP漏洞之跨网站请求伪造(php跨站脚本攻击)
- 2025-06-09 ThinkPHP后台入口地址查找(thinkphp build.php)
- 2025-06-09 PHP新手如何提高代码质量(php新手如何提高代码质量的方法)
- 2025-06-09 揭秘PHP8.4的新特性,帮助您提高开发效率
- 2024-07-26 golang的string字符串常用函数(golang strings.builder)
- 2024-07-26 重蔚自留地——PHP核心知识要点(重蔚自留地--php核心知识要点汇总)
- 2024-07-26 PHP 数组转字符串,与字符串转数组
- 2024-07-26 php经典趣味算法(php常用算法及使用场景)
- 2024-07-26 PHP核心知识要点汇总一:记好这些,学习php会进步一大截
- 2024-07-26 它终于来了!一起来探查PHP8测试版都有些啥东东
- 06-09Socioeconomic growth goals high on meetings' agenda
- 06-09Cities Along Middle Reaches of Yangtze River Agree on 63 Cooperation Items
- 06-09Scientists to make flag flutter on moon
- 06-09CBN丨Foreign-funded institutions bullish on Chinese assets
- 06-09Full Text: Joint Statement between the People's Republic of China and the French Republic on Climate Change on the occasion of the Tenth Anniversary of the Paris Agreement
- 06-092022年底总结,温暖和激励自己的文案
- 06-09百度实时推送代码解决方案(百度实时推送工具)
- 06-09PHP漏洞之跨网站请求伪造(php跨站脚本攻击)
- 最近发表
-
- Socioeconomic growth goals high on meetings' agenda
- Cities Along Middle Reaches of Yangtze River Agree on 63 Cooperation Items
- Scientists to make flag flutter on moon
- CBN丨Foreign-funded institutions bullish on Chinese assets
- Full Text: Joint Statement between the People's Republic of China and the French Republic on Climate Change on the occasion of the Tenth Anniversary of the Paris Agreement
- 2022年底总结,温暖和激励自己的文案
- 百度实时推送代码解决方案(百度实时推送工具)
- PHP漏洞之跨网站请求伪造(php跨站脚本攻击)
- ThinkPHP后台入口地址查找(thinkphp build.php)
- PHP新手如何提高代码质量(php新手如何提高代码质量的方法)
- 标签列表
-
- jsp (69)
- gitpush (78)
- gitreset (66)
- python字典 (67)
- dockercp (63)
- gitclone命令 (63)
- dockersave (62)
- linux命令大全 (65)
- pythonif (86)
- location.href (69)
- dockerexec (65)
- tail-f (79)
- queryselectorall (63)
- location.search (79)
- bootstrap教程 (74)
- deletesql (62)
- linuxgzip (68)
- 字符串连接 (73)
- html标签 (69)
- c++初始化列表 (64)
- mysqlinnodbmyisam区别 (63)
- arraylistadd (66)
- mysqldatesub函数 (63)
- window10java环境变量设置 (66)
- c++虚函数和纯虚函数的区别 (66)