otuatail Posted September 20, 2006 Share Posted September 20, 2006 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 likeindex.php<?if (IsRobot() )Insert Dumy_page.htmlelse?><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 More sharing options...
craygo Posted September 20, 2006 Share Posted September 20, 2006 the code is[code]include('Dumy_page.html');[/code]Actually alot of people do it different ways but the function is "include"Ray Link to comment https://forums.phpfreaks.com/topic/21411-inserting-a-html-page-within-a-php-page/#findComment-95361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.