Iframe and virus

Reply

Join Date: Sep 2008
Posts: 138
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Iframe and virus

 
0
  #1
Sep 28th, 2009
Hai,

I had a php based website and my home page is index.php. In that index.php page I called an another page (inner.php) using iframe. And works fine. Now I had heared that goolge calculate iframe objects as the virus or something like that blacklist our website. Is there is any chance for that. Also please let me know is there is any other method for import a php in to the cell of an another php page other than the iframe method.

Thanks
Rajeesh
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 72
Reputation: Kruptein is an unknown quantity at this point 
Solved Threads: 5
Kruptein's Avatar
Kruptein Kruptein is offline Offline
Junior Poster in Training

Re: Iframe and virus

 
0
  #2
Sep 28th, 2009
It's sure that google doesn't read iframes, but I can't say they think it are viruses, I also used iframes a lot, but people told me it was a bad habbit.

Solution: Use require(_once) or include(_once) instead of iframes, google will read those! and you don't see the difference.

I hope this will help you
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,456
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 136
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: Iframe and virus

 
0
  #3
Sep 28th, 2009
This is from the top of my head but try something like this:
  1. <div style="width:100%;height:500px;scrollbars;border-style:solid;overflow:no;overflow-Y:auto;background-color:#FFFFFF;border:1px;border-color:#AAAAAA;">
  2. <?php echo file_get_contents('http://www.yoursite.com/file.php'); ?>
  3. </div>
Also in the file your embedding, do not have any body or head tags in the included file. So in the example above, file.php would have no body tags and no head tags.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 72
Reputation: Kruptein is an unknown quantity at this point 
Solved Threads: 5
Kruptein's Avatar
Kruptein Kruptein is offline Offline
Junior Poster in Training

Re: Iframe and virus

 
0
  #4
Sep 28th, 2009
All of the following work:
  1. <?php
  2. require('./index.php')
  3. require_once('./index.php')
  4. include('./index.php')
  5. include_once('./index.php')
  6. ?>
Last edited by Kruptein; Sep 28th, 2009 at 6:33 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 138
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Re: Iframe and virus

 
0
  #5
Sep 28th, 2009
Thanks to all to the kind help
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC