1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

breaking the iframe

Discussion in 'PHP & Perl' started by cheezycheez, Jul 14, 2009.

  1. cheezycheez

    cheezycheez Junior Member

    Joined:
    May 9, 2009
    Messages:
    117
    Likes Received:
    14
    i was trying to break the iframe so it wont go on surfing as i tried to register my site to the autosurfing.. :D can you please tell me?

    Code:
    <?PHP
    $file_handle = fopen("l.txt", "rb");
    $line_of_text = fgets($file_handle);
    $i = 0;
    $mypages[$i] = $line_of_text;
    $i=1;
    while (!feof($file_handle) ) {
    $line_of_text = fgets($file_handle);
    $mypages[$i] = $line_of_text;
    $i = $i+1;
    
    }
    
    fclose($file_handle);
    $myrandompage = $mypages[mt_rand(0, $i -1)];
    ?>
    <iframe src ="<?php echo $myrandompage; ?>" frameborder=0 allowtransparency="true" width="100%" height="100%">
      <p>Your browser does not support iframes.</p>
    </iframe>
    
    :D please