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 8 of 8
  1. #1
    New Coder
    Join Date
    Jul 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Include HTML file in another HTML file

    I know this sounds super easy at first, but hear me out. Mostly because I've never set up a website through a hosting service before (only developed on an apache/tomcat server of my own) and am not sure if the server-side include work once it's being hosted regardless of whether or not it works from opening the file up with the web browser? I would set up the server that comes with windows, but I'm mostly developing on work computer that won't allow me to add/remove windows components. Any suggestions?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    So wait you are trying this on a web host or on your local computer? Either way you need a server of some kind. Its just more likely that you web host would support SSI or PHP includes.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    iframe?

  • #4
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post
    if you're on a web host SSI or PHP includes would be your best options.

    I think PHP includes are more useful in the long run. But depends on what purpose...

  • #5
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    If the server has PHP installed, I see no reason to use SSI. Why use two languages when you can use one.
    .
    .

  • #6
    New Coder
    Join Date
    Jul 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not using a server at all right now. It's simply on my work computer. Is there a way to make an include to a webpage that isn't invoked on the server side?

  • #7
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    The only method I can think of without serverside ARE iframes. However those get messy sometimes - and are frowned upon.

    You can easily emulate a server environment on your computer. XAMMP, WAMP and Apache (though you have to install all the modules yourself for the Apache Server). XAMMP is my personal favorite.
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.

  • #8
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,880
    Thanks
    6
    Thanked 1,035 Times in 1,008 Posts
    <object> anyone?


  •  

    Posting Permissions

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