iframe help

Discussion in 'Cloaking and Content Generators' started by mafai44, Oct 25, 2012.

  1. mafai44

    mafai44 Newbie

    Joined:
    Jun 2, 2011
    Messages:
    30
    Likes Received:
    9
    Hi, not sure if this goes here, anyways..

    I want to know if its possible to iframe a live stream of lets say a sports game from another site and put it onto my website. If anyone knows how to do this I would greatly appreciate the help. Thanks!
     
  2. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    834
    Likes Received:
    866
    Here is the iframe code with full html layout
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>[COLOR=#b22222]CHANGE TITLE[/COLOR]</title>
    <style type="text/css">
    html {overflow: auto;}
    html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none;}
    iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden;}
    </style>
    </head>
    <body>
    <iframe id="tree" name="tree" src="[COLOR=#b22222]http://www.YOURDOMAIN.COM[/COLOR]" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="yes"></iframe>
    </body>
    </html>
    Bigger sites are breaking iframe, just to let you know why will be white page sometimes.
     
  3. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    834
    Likes Received:
    866
    Just tested with other methods like get_contents, cUrl etc, youtube working.
    Easiest method for you would be
    Code:
    <?php
    $video = file_get_contents('http://www.youtube.com/watch?v=lBjbCb3pPss');
    echo $video;
    ?>
    
    Copy code in text file, rename it to video.php or whatever.php and when you visit it on link www.yourdomain.com/video.php video (or whatever you want) will show up.