Jump to content


Photo

Inserting a html page within a php page


  • Please log in to reply
1 reply to this topic

#1 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 20 September 2006 - 02:31 PM

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.


#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 20 September 2006 - 02:38 PM

the code is

include('Dumy_page.html');

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

Ray




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users