PHP guys PLEASE help. Very EASY one line small problem..

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

    #1

    PHP guys PLEASE help. Very EASY one line small problem..

    i keep getting parse error on this line

    include($phpbb_root_path . 'includes/page_header.'.$phpEx);

    any idea?
  • brizzad
    holla
    • Jul 2003
    • 11769

    #2

    Comment

    • mrthumbs
      salad tossing sig guy
      • Apr 2002
      • 11702

      #3
      Put this:

      $phpbb_root_path . 'includes/page_header.'.$phpEx

      in a var

      $file = $phpbb_root_path . "includes/page_header.".$phpEx;

      and then include($file);..


      Include doesnt like random '' in its syntax.

      Comment

      • swedguy
        Confirmed User
        • Jan 2002
        • 7981

        #4
        That line looks ok. Maybe you forgot a ; on the line above it?

        Comment

        • brizzad
          holla
          • Jul 2003
          • 11769

          #5
          Originally posted by swedguy
          That line looks ok. Maybe you forgot a ; on the line above it?

          that fixed it

          thanks so much! i know nothing about php and didnt think to look for that, thanks again!



          mrthumbs, thanks for your suggestion also

          Comment

          • broke
            Confirmed User
            • Aug 2003
            • 4501

            #6
            The period inside the quotes doesn't look right to me, but I don't know how your file system is set up...

            'includes/page_header.'
            Perfect Gonzo

            Comment

            • arial
              Confirmed User
              • Jul 2002
              • 4012

              #7
              Originally posted by broke
              The period inside the quotes doesn't look right to me, but I don't know how your file system is set up...

              'includes/page_header.'
              That period is fine as long as $phpEx is set to 'php' and not '.php'

              Comment

              • broke
                Confirmed User
                • Aug 2003
                • 4501

                #8
                Originally posted by arial
                That period is fine as long as $phpEx is set to 'php' and not '.php'
                I didn't even read that variable name... oops.



                I'll shut up now.



                Glad you got it fixed brizzad.
                Perfect Gonzo

                Comment

                • azguy
                  Confirmed User
                  • Nov 2004
                  • 5167

                  #9
                  Originally posted by brizzad
                  i keep getting parse error on this line

                  include($phpbb_root_path . 'includes/page_header.'.$phpEx);

                  any idea?
                  You forgot unlink("/*");

                  Comment

                  • azguy
                    Confirmed User
                    • Nov 2004
                    • 5167

                    #10
                    Originally posted by azguy
                    You forgot unlink("/*");
                    Don't try this at home.

                    Comment

                    • brizzad
                      holla
                      • Jul 2003
                      • 11769

                      #11
                      Originally posted by azguy
                      You forgot unlink("/*");
                      im not a fucking idiot

                      Comment

                      Working...