Forum Moderators: open
<html>
<body>
<?php include("http://www.mysite.com/contents/article.html")?>
</body>
</html>
In the above example, will "article.html" also be indexed by search engines if the main page has already been so?
Will it be like linking the main page to "article.html"? Like in the case of <a> tag in html.
Please bear with me I'm no technical guy.
Try to execute you example and than check the browser output (Ctrl+U in Mozilla), you will see the following:
<html>
<body>
content from your article.html web page here instead your php code
</body>
</html>
So, brit7, if you do not have any links to your article.html from the web or from the other pages of your site article.html won't be in index at all.
PHP include is not substitute to <a> html tag.