943,534 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 390
  • PHP RSS
Sep 28th, 2009
0

Iframe and virus

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Posting Whiz in Training
rajeesh_rsn is offline Offline
265 posts
since Sep 2008
Sep 28th, 2009
0

Re: Iframe and virus

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
Reputation Points: 25
Solved Threads: 11
Posting Whiz in Training
Kruptein is offline Offline
258 posts
since Sep 2009
Sep 28th, 2009
0

Re: Iframe and virus

This is from the top of my head but try something like this:
php Syntax (Toggle Plain Text)
  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.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Sep 28th, 2009
0

Re: Iframe and virus

All of the following work:
PHP Syntax (Toggle Plain Text)
  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.
Reputation Points: 25
Solved Threads: 11
Posting Whiz in Training
Kruptein is offline Offline
258 posts
since Sep 2009
Sep 28th, 2009
0

Re: Iframe and virus

Thanks to all to the kind help
Reputation Points: 10
Solved Threads: 0
Posting Whiz in Training
rajeesh_rsn is offline Offline
265 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Php mysql connect
Next Thread in PHP Forum Timeline: Help a newb?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC