PHP/Apache question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boldy
    Macdaddy coder
    • Feb 2002
    • 2806

    #1

    PHP/Apache question

    I combine PHP and perl to build a webmasters area. I have a problem when a serverside generated a html page includes PHP SSI's, php doesnt parse them.

    Is there a way to do this ? Changing Content-Types ?

    Thnx
    MacDaddy Coder.
  • Mr.Fiction
    Confirmed User
    • Feb 2002
    • 9484

    #2
    Why not just use PHP includes instead of SSI includes? That way you don't have both going on. PHP can do more anyway.
    Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

    Comment

    • jennycards
      Confirmed User
      • Feb 2002
      • 1124

      #3
      Here comes the code you need ...
      PHP Code:
      <? include ("somefile.html"); ?>
      Forget about SSI.
      Make Money with true niche programs like Adult ECards - Pantyhose Fetish - Men in Pantyhose

      Comment

      • chodadog
        Confirmed User
        • Apr 2002
        • 9736

        #4
        Yeah, there's really no need to use SSI when you have php.
        26 + 6 = 1

        Comment

        • spanky
          Confirmed User
          • Apr 2002
          • 231

          #5
          Originally posted by jennycards
          PHP Code:
          <? include ("somefile.html"); ?>
          not that it makes a big difference but readfile() would be a wee bit quicker for static html or text files as the php preprocessor won't bother evaluating the contents of the file.

          PHP Code:
          <? @readfile("./somefile.html"); ?>
          cheers

          Comment

          • swedguy
            Confirmed User
            • Jan 2002
            • 7981

            #6
            If you really want to use both, here's a tip how to get it to work http://www.zend.com/tips/tips.php?id=149&single=1

            Comment

            • FATPad
              Confirmed User
              • Oct 2001
              • 6693

              #7
              Originally posted by spanky


              not that it makes a big difference but readfile() would be a wee bit quicker for static html or text files as the php preprocessor won't bother evaluating the contents of the file.

              PHP Code:
              <? @readfile("./somefile.html"); ?>
              cheers
              Sweet. I was actually just thinking about this the other day.

              Thanks.
              <a href="http://www.adultcontent.co.uk">Adult Content UK - Great British Content</a>

              Comment

              • chodadog
                Confirmed User
                • Apr 2002
                • 9736

                #8
                Originally posted by spanky


                not that it makes a big difference but readfile() would be a wee bit quicker for static html or text files as the php preprocessor won't bother evaluating the contents of the file.

                PHP Code:
                <? @readfile("./somefile.html"); ?>
                cheers
                I never knew that! thanks for the tip
                26 + 6 = 1

                Comment

                • boldy
                  Macdaddy coder
                  • Feb 2002
                  • 2806

                  #9
                  Originally posted by Mr.Fiction
                  Why not just use PHP includes instead of SSI includes? That way you don't have both going on. PHP can do more anyway.
                  Okay try that, thanks for all the response guys and dolls ..

                  I dont know if php can do more, i've been programming perl for tha last 5 years now, on dailly basis. So, i know this language by hart. Anyway pushed myself to do this one in php.

                  Thnx
                  MacDaddy Coder.

                  Comment

                  Working...