PHP WEB SCRIPTS    Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

iframe problem with my php script, help please

 
Post new topic   Reply to topic    PHP Web Scripts Forum Index -> Support & Discussion
View previous topic :: View next topic  
Author Message
elan123



Joined: 02 Jun 2009
Posts: 1

PostPosted: Tue Jun 02, 2009 9:00 am    Post subject: iframe problem with my php script, help please Reply with quote

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>

--------------------
Back to top
View user's profile Send private message
PHPWebScripts
Richard - Admin


Joined: 13 Jan 2003
Posts: 6244

PostPosted: Tue Jun 02, 2009 12:38 pm    Post subject: Reply with quote

Please specify which of our scripts you use.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHP Web Scripts Forum Index -> Support & Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group