如何通过PHP直接访问另外一台WEB服务器的网页 url = 那个服务器的地址/你所需要的网页地址file(url)就可以 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 只是说意思,并不符合语法!给你一个例子看看,很麻烦哦!<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);?> 我试了,可以用类似以下的语句。include "http://www.mistruster.com/";不过跨站点访问的话,如果点击别的站点的连接,而在本地站点没有那个文件的话…… php怎么将查询结果写入数据库表中 请问如何截取指定字符串,并判断 字符串转换,JAVA代码转PHP代码,提供源码,高手都来拿分。 PHP的包含函数问题? php中使用pdo连接sqlite数据库 删除记录的问题 这样的自动搜索程序怎么写? 能不能不用数据库实现提交的人数统计! 各位老大,救命 有关PHP使用相对路径访问ACCESS数据库的方法。 300M以上的PHP网页空间+100M以上的MYMSQL空间。 是否APACHE不支持中文目錄與文件名呢? php中如何关闭com?
<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);
?>
include "http://www.mistruster.com/";不过跨站点访问的话,如果点击别的站点的连接,而在本地站点没有那个文件的话……