Jump to content

Archived

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

otuatail

Inserting a html page within a php page

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.

Share this post


Link to post
Share on other sites
the code is

[code]include('Dumy_page.html');[/code]

Actually alot of people do it different ways but the function is "include"

Ray

Share this post


Link to post
Share on other sites

×

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.