Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to Combine Multiple HTML Page together?

    Hi,
    My php code executes a shell command that output a html file. I want to combine this file with my website's html file. The reason is that I don't want to use iframe because I am using adsense. How do I do it?
    Thanks.

  • #2
    Regular Coder
    Join Date
    Oct 2003
    Posts
    603
    Thanks
    2
    Thanked 1 Time in 1 Post

  • #3
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Except that then you will have duplicate HTML/BODY tags.

    You could try using a regular expression to grab everything between <body> and </body>, but depending on the HTML style that might not work (if it includes CSS, etc.)

  • #4
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    I did exactly that, but now the format inside the inner html is all mess up. Is there a way to make it not to mess up?
    Thank you.

    Quote Originally Posted by aedrin View Post
    Except that then you will have duplicate HTML/BODY tags.

    You could try using a regular expression to grab everything between <body> and </body>, but depending on the HTML style that might not work (if it includes CSS, etc.)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •