php关于destoon首页替换的问题
作者:互联网
//index.php <?php $keys = file("a.txt");//$dir $hangshu = count(file("a.txt")); $zuoce1 = ''; for ($ww=$hangshu - 12;$ww<$hangshu - 0; $ww++){ $jqurl = explode("||@||",$keys[$ww]); $fwh1 = trim($jqurl[0]); $fwh3 = trim($jqurl[1]); $fwh2 = trim($jqurl[2]); $fwh4 = trim($jqurl[3]); $zuoce1 .= '<li title="'.$fwh3.'"><span class="f_r">'.$fwh1.'</span><a href="http://www. .com/know/'.$fwh2.'.html" target="_blank">'.$fwh3.'</a></li> ' ; } $moban = file_get_contents('index.html'); $moban = str_replace('|||SS|||', $zuoce1, $moban); echo $moban;
标签:fwh1,index,fwh3,destoon,moban,首页,php 来源: https://www.cnblogs.com/bdua/p/15398269.html