What kind of includes don't use PHP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    What kind of includes don't use PHP?

    I just moved this site a new server:



    On the new server, it does not work. Most pages have a top banner and
    bottom footer that is included. The include works successfully on old
    server but not on the new one. At first I thought I was seeing PHP
    includes() and what needed to happen has that the .htacess needed to
    send all html files to the PHP parser - I'd done this many times
    before. In fact, I'd done this on my own personal site. So I wrote a
    ..htaccess file for this to happen. I could not get it to work, though
    I checked the paths and the capitalization many times.

    If you look at these pages, you'll see the headers and footers are
    missing (compared to the same pages shown at the site above):




    If you look at the source code, all the includes begin to jumpu out at
    you, including this one at the top and the two at the bottom:



    <!--#include file="inc_scrip ts.js" -->
    <link href="staengl3. css" rel="stylesheet " type="text/css">
    </head>
    <body bgcolor="#E8E5D 9"
    onLoad="MM_prel oadImages('imag es/subpage_nav_r1_ c1_f2.gif','ima ges/subpage_nav_r1_ c2_f2.gif','ima ges/subpage_nav_r1_ c3_f2.gif','ima ges/subpage_nav_r1_ c4_f2.gif','ima ges/subpage_nav_r1_ c5_f2.gif','ima ges/subpage_nav_r1_ c6_f2.gif');">
    <div align="center">
    <table width="740" border="0" cellpadding="10 " cellspacing="0"
    class="borderOu ter">
    <tr>
    <td align="center" valign="middle" ><table width="100%"
    border="0" cellpadding="0" cellspacing="0" class="borderOu ter">
    <tr>
    <td align="center">
    <!--#include file="inc_heade r_company.htm" -->
    <!--#include file="inc_nav.h tm" -->





    What kind of include is this, and how do I activate on the new
    server.???
  • Geoff Berrow

    #2
    Re: What kind of includes don't use PHP?

    I noticed that Message-ID:
    <da7e68e8.04072 91023.177adf54@ posting.google. com> from lawrence
    contained the following:
    [color=blue]
    > <!--#include file="inc_heade r_company.htm" -->
    > <!--#include file="inc_nav.h tm" -->
    >
    >
    >What kind of include is this, and how do I activate on the new
    >server.???[/color]

    This might help


    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • Savut

      #3
      Re: What kind of includes don't use PHP?

      Seem like your new server has SSI disabled, that's why you can see this code
      on the browser. If SSi worked, you shouldn't see these lines.

      Savut


      "lawrence" <lkrubner@geoci ties.com> wrote in message
      news:da7e68e8.0 407291023.177ad f54@posting.goo gle.com...[color=blue]
      >I just moved this site a new server:
      >
      > http://www.staenglengineering.com
      >
      > On the new server, it does not work. Most pages have a top banner and
      > bottom footer that is included. The include works successfully on old
      > server but not on the new one. At first I thought I was seeing PHP
      > includes() and what needed to happen has that the .htacess needed to
      > send all html files to the PHP parser - I'd done this many times
      > before. In fact, I'd done this on my own personal site. So I wrote a
      > .htaccess file for this to happen. I could not get it to work, though
      > I checked the paths and the capitalization many times.
      >
      > If you look at these pages, you'll see the headers and footers are
      > missing (compared to the same pages shown at the site above):
      >
      > http://www.publicpen.com/staengl/projects.shtm
      > http://www.publicpen.com/staengl/resume_staengl.shtm
      >
      > If you look at the source code, all the includes begin to jumpu out at
      > you, including this one at the top and the two at the bottom:
      >
      >
      >
      > <!--#include file="inc_scrip ts.js" -->
      > <link href="staengl3. css" rel="stylesheet " type="text/css">
      > </head>
      > <body bgcolor="#E8E5D 9"
      > onLoad="MM_prel oadImages('imag es/subpage_nav_r1_ c1_f2.gif','ima ges/subpage_nav_r1_ c2_f2.gif','ima ges/subpage_nav_r1_ c3_f2.gif','ima ges/subpage_nav_r1_ c4_f2.gif','ima ges/subpage_nav_r1_ c5_f2.gif','ima ges/subpage_nav_r1_ c6_f2.gif');">
      > <div align="center">
      > <table width="740" border="0" cellpadding="10 " cellspacing="0"
      > class="borderOu ter">
      > <tr>
      > <td align="center" valign="middle" ><table width="100%"
      > border="0" cellpadding="0" cellspacing="0" class="borderOu ter">
      > <tr>
      > <td align="center">
      > <!--#include file="inc_heade r_company.htm" -->
      > <!--#include file="inc_nav.h tm" -->
      >
      >
      >
      >
      >
      > What kind of include is this, and how do I activate on the new
      > server.???[/color]

      Comment

      • Default User

        #4
        Re: What kind of includes don't use PHP?

        Savut wrote:[color=blue]
        >
        > Seem like your new server has SSI disabled, that's why you can see this code
        > on the browser. If SSi worked, you shouldn't see these lines.[/color]


        Or possibly the .shtm extension isn't valid SSI for the new host. The OP
        could try .shtml and see if that makes a difference.



        Brian Rodenborn

        Comment

        • lawrence

          #5
          Re: What kind of includes don't use PHP?

          Default User <first.last@boe ing.com.invalid > wrote in message news:<410977B3. E11B9CC2@boeing .com.invalid>.. .[color=blue]
          > Savut wrote:[color=green]
          > >
          > > Seem like your new server has SSI disabled, that's why you can see this code
          > > on the browser. If SSi worked, you shouldn't see these lines.[/color]
          >
          >
          > Or possibly the .shtm extension isn't valid SSI for the new host. The OP
          > could try .shtml and see if that makes a difference.
          >
          >
          >
          > Brian Rodenborn[/color]

          Thanks. I edited Apache's default.config file and got ".shtm" to work
          as an exstention.

          Comment

          Working...