Jump to content

Inserting a html page within a php page


otuatail

Recommended Posts

On a previous post I was concerned with robots seeing code. Now I know they can’t I would like to create a page that would satisfy the robot with the contents of the website (knowing in advance it is a robot) instead of a user friendly page. If I create a html page on the server, how can I include it in my main page. Something like

index.php
<?
if (IsRobot() )

Insert  Dumy_page.html

else

?>

<html>
... Original html here

</html>


Thanks Desmond.
Link to comment
https://forums.phpfreaks.com/topic/21411-inserting-a-html-page-within-a-php-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.