我想在PHP中显示其它网页,怎么实现。
例如:我想把www.hao123.com这个网页显示在我的网页中怎么写。我在网上找了一个,<?php
$f_info=implode("",file("http://www.hao123.com"));
echo $f_info;
?>但这个显示不出网页效果,能显示内容。
例如:我想把www.hao123.com这个网页显示在我的网页中怎么写。我在网上找了一个,<?php
$f_info=implode("",file("http://www.hao123.com"));
echo $f_info;
?>但这个显示不出网页效果,能显示内容。
或者 fopen();
用js 实现可以吧,
window.location='http://www.hao123.com';
不过除了页面的东西 像js、css要自己弄下来。
不知道是这样不?
<iframe src="http://www.hao123.com" frameborder=0 scrolling="no" height="768px" width="1024px"></iframe>
<base href="http://www.hao123.com" />
<?php
$f_info=implode("",file("http://www.hao123.com"));
echo $f_info;
?>