神马批量添加站点PHP脚本
作者:互联网
今天来分享一个神马批量添加域名到站长平台的PHP脚本,这几天把批量添加的软件也发出来吧~
- <?php
- //要创建的两个文件
- $TxtFileName = "index.html";
- //以读写方式打写指定文件,如果文件不存则创建
- if( ($TxtRes=fopen ($TxtFileName,"w+")) === FALSE){
- echo("创建可写文件:".$TxtFileName."失败");
- exit();
- }
- echo ("创建可写文件".$TxtFileName."成功!</br>");
- $StrConents = $_GET['str'];
- $StrConent = "<html>";
- fwrite ($TxtRes,$StrConent);
- $StrConent = "<head>";
- fwrite ($TxtRes,$StrConent);
- $StrConents = '<meta name="shenma-site-verification" content="'.$StrConents.'"/>"';
- fwrite ($TxtRes,$StrConents);
- $StrConent = "<title>Test玩站网</title>";
- fwrite ($TxtRes,$StrConent);
- $StrConent = " </head>";
- fwrite ($TxtRes,$StrConent);
- $StrConent = "<body>www.Testyuming.cn</body>";
- fwrite ($TxtRes,$StrConent);
- $StrConent = "</html>";
- fwrite ($TxtRes,$StrConent);
- ?>
标签:文件,TxtFileName,fwrite,StrConents,StrConent,站点,TxtRes,神马,PHP 来源: https://www.cnblogs.com/xiaojuntest/p/13686582.html