我想在PHP中显示其它网页,怎么实现。
例如:我想把www.hao123.com这个网页显示在我的网页中怎么写。我在网上找了一个,<?php   
  $f_info=implode("",file("http://www.hao123.com"));   
  echo   $f_info;   
  ?>但这个显示不出网页效果,能显示内容。

解决方案 »

  1.   

    echo file("http://www.hao123.com");
    或者 fopen();
      

  2.   

    什么意思呢!页面加载是就显示其他页面吗?
    用js 实现可以吧,
    window.location='http://www.hao123.com';
      

  3.   

    file_get_contents("http://www.hao123.com")
    不过除了页面的东西 像js、css要自己弄下来。
    不知道是这样不?
      

  4.   


    <iframe src="http://www.hao123.com" frameborder=0 scrolling="no" height="768px" width="1024px"></iframe>
      

  5.   


    <base href="http://www.hao123.com" />
    <?php   
      $f_info=implode("",file("http://www.hao123.com"));   
      echo $f_info;   
      ?>