0

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

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by rajeesh_rsn
0

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 :)

0

This is from the top of my head but try something like this:

<div style="width:100%;height:500px;scrollbars;border-style:solid;overflow:no;overflow-Y:auto;background-color:#FFFFFF;border:1px;border-color:#AAAAAA;">
<?php echo file_get_contents('http://www.yoursite.com/file.php'); ?>
</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.

0

All of the following work:

<?php
require('./index.php')
require_once('./index.php')
include('./index.php')
include_once('./index.php')
?>

Edited by Kruptein: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.