|
[ol] "; $filename=$txt_name;//注意修改文件的路径 if (file_exists($filename)) { unlink($filename); $fp=fopen($filename,"a+"); }else{ $fp=fopen($filename,"w+"); } $text=$set_name."\r\n"; fwrite($fp,$text); fclose($fp);}$txt_name='sitemap.xml';writeStatistic_set_name($txt_name);$sql="select * from jieqi_article_article";$db->query($sql);for($i=1;$inum_rows();$i++){ $db->next_record(); // $siteid = $db->f(siteid); $articleid = $db->f(articleid);/**这里是小说书籍信息页地址,你也可以修改成你的小说章节目录地址,这个自己选择*/ $url = "http://www.6zd.com/book/$articleid.html ".date("Y-m-d")." daily 1.0"; writeStatistic($url,$txt_name); }$db->free();$over='';writeStatistic($over,$txt_name);print "OK";exit;?>[/ol]复制代码
Parse error: syntax error, unexpected T_DNUMBER in D:\wwwroot\www.xxx.com\bmapxml.php on line 26
报错 |
|