url = 那个服务器的地址/你所需要的网页地址
file(url)
就可以

解决方案 »

  1.   

    只是说意思,并不符合语法!给你一个例子看看,很麻烦哦!
    <STYLE TYPE="text/css">
    <!--
    td {  font-size: 9pt}
    body {  font-size: 9pt}
    -->
    </STYLE>
    <?
    $fp=fopen("http://www.betbrain.com/odds/oddsview.jsp?from=qb&dis=1&leagues=10","r");
    $get=fread($fp,500000);
    fclose($fp);
    //eregi("value=\"ADD TO ODDSCALCULATOR\".*<a href=\"javascript:selectIds('0,1,2,3')\" class=\"smallText\" style=\"font-size : 7 pt;\">Select all</a>",$get,$rep_get);
    eregi("value=\"ADD TO ODDSCALCULATOR\".*Select all",$get,$rep_get);$content=$rep_get[0]."<br>";
    //echo "old:<br>".$content."<br>";$content=str_replace("#F1F7F1","#efefef",$content);
    $content=str_replace("#88A299","#BEBEBE",$content);
    $content=str_replace("Select all<br>","",$content);
    $content=str_replace("<img src='/gfx/pics/spc.gif' width='100%' height='10' border='0'>","",$content);
    $content=str_replace("value=\"ADD TO ODDSCALCULATOR\" class=\"button\">","",$content);
    $content=str_replace("<a href=\"showmatch.jsp?matchId=","<a ",$content);
    $content=str_replace("<a href=\"/about/aboutProbabilityCalculation.jsp\"><img src=\"/gfx/icons/help_icon15x15.gif\" height=\"15\" width=\"15\" border=\"0\" align=\"absmiddle\"></a>","",$content);
    $content=str_replace("<input type=\"checkbox\" name=\"matchId\" ","<",$content);$file="bet_italy_match.txt";
    $trans_txt=file($file);
    $count=count($trans_txt);
    for($i=0;$i<$count;$i++)
    {
    $trans=explode("|",$trans_txt[$i]);
    $content=str_replace($trans[0],$trans[1],$content);
    }$datatime=date("Y-m-d H:i:s");//更新时间
    $content="<link rel=stylesheet href=bet.css type=text/css><table border=0 width=100%><tr><td>更新时间:$datatime</td></tr></table>".$content."</td></tr></table>";echo "new:<br>".$content;$fp=fopen("it_match_bet.html","w");
    $write=fwrite($fp,$content);
    echo "<a href=it_match_bet.html target=_blank>成功生成文件</a>";
    fclose($fp);
    $fp1=fopen("../mail/turn/peilv/it_match_bet.html","w");
    $write1=fwrite($fp1,$content);
    echo "<a href=../mail/turn/peilv/it_match_bet.html target=_blank>成功生成文件</a>";
    fclose($fp1);
    ?>
      

  2.   

    我试了,可以用类似以下的语句。
    include "http://www.mistruster.com/";不过跨站点访问的话,如果点击别的站点的连接,而在本地站点没有那个文件的话……