//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;