Can I use <? include("filename....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brizzad
    holla
    • Jul 2003
    • 11769

    #1

    Can I use <? include("filename....

    can I use that tag in a php file to include a regular html file?
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #2
    sure .........
    hatisblack at yahoo.com

    Comment

    • Slap Dot
      Confirmed User
      • Aug 2004
      • 3168

      #3
      Yeah, if you finish it..

      » AIM: slapdotted
      » Skype: slapdot
      » ICQ: 190444

      Comment

      • Lace
        Too lazy to set a custom title
        • Mar 2004
        • 16116

        #4
        yup yup..
        Your Paysite Partner
        Strength In Numbers!
        StickyDollars | RadicalCash | KennysPennies | HomegrownCash

        Comment

        • brizzad
          holla
          • Jul 2003
          • 11769

          #5
          Originally posted by Slap Dot
          Yeah, if you finish it..
          If i'm doing this within the <?php and ?> tags, do I need to still do the whole thing

          <?php include("file"); ?>

          or can I just do

          include("file");

          Comment

          • brizzad
            holla
            • Jul 2003
            • 11769

            #6
            helloooooooo?

            Comment

            • Tempest
              Too lazy to set a custom title
              • May 2004
              • 10217

              #7
              Originally posted by brizzad
              If i'm doing this within the <?php and ?> tags, do I need to still do the whole thing

              <?php include("file"); ?>

              or can I just do

              include("file");
              If you're already inside a pair of <?php ?> tags then you don't need to put them again... You might also want to consider putting a @ in front of the include (@include('file.html');). That way if there's an error and it's not found it won't print out one of those ugly php messages that shows your path etc.

              Comment

              • brizzad
                holla
                • Jul 2003
                • 11769

                #8
                Originally posted by Tempest
                If you're already inside a pair of <?php ?> tags then you don't need to put them again... You might also want to consider putting a @ in front of the include (@include('file.html');). That way if there's an error and it's not found it won't print out one of those ugly php messages that shows your path etc.
                okay great, thanks!

                thanks everyone else too

                Comment

                Working...