html page ino php

Discussion in 'PHP' started by laserfink, Oct 6, 2007.

  1. #1
    i hve an old ite ..decided to update it with a free JOKES script
    OK so ...thats all woking fin , now i am left with 15 html pages that i need to get appear within the overall site created with the joke script

    any idea how
     
    laserfink, Oct 6, 2007 IP
  2. ravish_83

    ravish_83 Peon

    Messages:
    221
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    your question is not very clear

    but to me it look like that you have old html pages that you want to keep on the site and want all those to be included in the new script

    If this is the case you need to provide more details about the scripts you are using ?
     
    ravish_83, Oct 6, 2007 IP
  3. laserfink

    laserfink Active Member

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    thnaks sorry , head mashed as usual

    ok please have a look here
    http://www.dailysmile.co.uk/

    this site now runs an automated joke script but i would like to carryover some pages from the old site

    CLICK ON THE COMPLAINTS in menu , see how it pops up , i would it to appear within the site , in the middle of it like th other pages

    For clarification
    Home | Most Visited Jokes | Weekly Jokes | Daily Jokes | << thoses are autogenerated pages

    ............

    these are the start of my html pages i nee converetd an tostart showing up in centre of site

    does that make better sense ?

    PAUL
     
    laserfink, Oct 6, 2007 IP
  4. ravish_83

    ravish_83 Peon

    Messages:
    221
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes that makes sense now

    look like your whole site is coming from other server like here is page source

    <noframes>Sorry, you don"t appear to have frame support.
    Go here instead - <a href="http://www.spacequid.com/jokes/">Smile Daily !! Some Jokes and Happiness to pass the day !</a></noframes>
    </frameset>
    HTML:
    so here you don't have control on the contents
    it can only be possible if there is some interface to support that with the other site :(
     
    ravish_83, Oct 6, 2007 IP
  5. laserfink

    laserfink Active Member

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    lets say i go to my old site , simply copy the text in notepad so i ONLY have the TEXT , and i crate a page called complaints .php

    now how do I call the headers/footers etc ...in ASP i can use the code
    <%shoppageheader%>
    <%shoppagetrailer%>

    no idea how to do it in PHP ?


    PAUL
     
    laserfink, Oct 6, 2007 IP
  6. ravish_83

    ravish_83 Peon

    Messages:
    221
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you want to include something in php

    it like this

    <?php include("./initial_path/header.php"); ?>
    PHP:
    where initial_path is the path where the header file is located

    and header.php is your header file name
     
    ravish_83, Oct 6, 2007 IP
  7. laserfink

    laserfink Active Member

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #7
    mmmm i tried that , didnt wok , keep getting input error message
     
    laserfink, Oct 6, 2007 IP
  8. ravish_83

    ravish_83 Peon

    Messages:
    221
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ravish_83, Oct 6, 2007 IP