elan123
Joined: 02 Jun 2009 Posts: 1
|
Posted: Tue Jun 02, 2009 9:00 am Post subject: iframe problem with my php script, help please |
|
|
I am using the script below.
The problem is, when I use it on an "autosurf" website as my url, it breaks out of the frame created by the autosurf website, and destroys their banner/header at the top of the page. They won't allow my url because of this.
When my page loads, it cannot get rid of the "frame" at the top of the webpage that the autosurf owns. How can I fix this?
Please help.
------------------------------
<?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="50%" height="50%">
<p>Your browser does not support iframes.</p>
</iframe>
-------------------- |
|