我怎么能把整个网站打开到特定的div?

I am working on a website where there is a requirement to open another website into particular div. I had try below mentioned code but I am not able to get output with proper appearance.

<div style="overflow-x: hidden; overflow-y: scroll; height:300px; width:100%" >
      <?php echo $url ?>
</div>

I have to use only div. no I-frame nothing else. belowmention code i am use. and class name of this function is Scraper

  function getPagePost($url, $data = array(), $proxy='', $userpass='', $header = array()) {
        $ch = curl_init();

        if(!empty($header)){
            curl_setopt($ch, CURLOPT_HTTPHEADER, $header );
            curl_setopt($ch,CURLOPT_ENCODING , "gzip");
        }


        curl_setopt($ch, CURLOPT_URL, $url);
        if($this->useCookie)
            curl_setopt ($ch, CURLOPT_COOKIEJAR, $this->ckfile);         
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

        if(!empty($proxy))
        curl_setopt($ch, CURLOPT_PROXY, $proxy);

        if(!empty($userpass))
        curl_setopt($ch, CURLOPT_PROXYUSERPWD, $userpass);

        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

        $result = curl_exec($ch);

        if($result === false) {
            $result = curl_error($ch);
        }   

        curl_close($ch);
        return $result;
    }

============================================

<?php if(isset($_POST['btnsubmit'])){

require_once 'scraper.php';
$scraper = new Scraper(); 
$url = $scraper->getPagePost($_POST['url']);
?>  

     <div style="overflow-x: hidden; overflow-y: scroll; height:300px; width:100%" >
          <?php echo $url; ?>
     </div>
     <?php } ?>

You need an iframe to do that like

<div style="overflow-x: hidden; overflow-y: scroll; height:300px; width:100%" >
    <iframe src="<?php echo $url;?>"></iframe>
</div>

But some of the sites like Gmail will not support this Because All of Google's websites have a code in there header, "x-frame-option: sameorigin" that causes it to only run on google websites. They cannot open in iframes

I think using an include is what you're looking for, although your question isn't quite clear. You should have:

<div style="overflow-x: hidden; overflow-y: scroll; height:300px; width:100%" >
  <?php include $url ?>
</div>

$url should be the path to the other "website" you need to put into your div. If the other "website" is a complete other website then this will work but some portions might not work depending on what is on the other website. Any http headers or some other things may not work and your resulting html code will not be valid, but it will display something resembling the original website.

I will stress that this is not a technically correct answer since the only technically correct and valid way to show another full website on another one is by using an i-frame.

You could use the object embed method instead of an iframe. http://jsfiddle.net/gDUUv/1/

E.g.:

<object data="<?php echo $url ?>" width="600" height="400">
    <embed src="<?php echo $url ?>" width="600" height="400"> </embed>
</object>