< ?php
$file_contents = file_get_contents('http://www.ccvita.com/123.txt');
echo $file_contents;
?>如何让 TXT 里面的内容随机读取5个显示出来能达到一下效果的 
<?php
$file=file('link.txt');
$file2=file('lin.txt');
$max=count($file)-1;
$max2=count($file2)-1;
for($i=0;$i<1;$i++){
  $index=mt_rand(0,$max);
  $index2=mt_rand(0,$max2);
  echo "<a href='http://".rand(1, 1000).".".trim($file2["$index2"])."'".">".trim($file["$index"])."</a>";
   
}
?>