need little php help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deleteduser
    Confirmed User
    • Sep 2001
    • 2218

    #1

    need little php help

    i have a website with a head part (logo etc) and a navigation on the left and the main stuff in the center.

    i want to have the head + navigation saved somewhere and add it to every page automaticly. that will make it alot easiert to change the navigation later. i don't want to edit 1000 html files.

    can anybody help me there? if so, email me to [email protected] or post here! thanks!
    ICQ #58981463
    Promote my PornAccess Site: 2Chicks1Dick
  • XxXotic
    Confirmed User
    • Jun 2002
    • 8500

    #2
    make individual head and menu files call with ssi perhaps?
    Oxeo - Serious Hosting For Serious Webmasters. iCQ:135.887013

    Comment

    • deleteduser
      Confirmed User
      • Sep 2001
      • 2218

      #3
      will do that if you tell me how
      ICQ #58981463
      Promote my PornAccess Site: 2Chicks1Dick

      Comment

      • swedguy
        Confirmed User
        • Jan 2002
        • 7981

        #4
        Save your header as header.html and your navigation as nav.html

        Then you add this where your header is supposed to be:
        < ? include("header.html") ? >

        and this where your navigation is supposed to be:
        < ? include("nav.html") ? >


        (Delete the space inbetween < and ?)

        Comment

        • Calvinguy
          Confirmed User
          • Oct 2002
          • 1752

          #5
          With php use include or require.

          Use the manual: http://www.php.net/manual/

          Comment

          • michaelw
            Confirmed User
            • May 2002
            • 1342

            #6
            <.? include("file.txt"); ?.>

            file.txt contains ur html
            <b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
            See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631

            Comment

            • foe
              Confirmed User
              • May 2002
              • 5246

              #7
              Originally posted by swedguy
              Save your header as header.html and your navigation as nav.html

              Then you add this where your header is supposed to be:
              < ? include("header.html") ? >

              and this where your navigation is supposed to be:
              < ? include("nav.html") ? >


              (Delete the space inbetween < and ?)
              This is the simplest way to go.

              Comment

              • iroc409
                Confirmed User
                • Jan 2003
                • 4728

                #8
                can you run SSI and PHP on the same page?
                <a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


                icq: 1 7 6 4 2 0 9 6 0
                Gallery templates for ONLY $25! w00t!

                Comment

                • michaelw
                  Confirmed User
                  • May 2002
                  • 1342

                  #9
                  Originally posted by swedguy
                  Save your header as header.html and your navigation as nav.html

                  Then you add this where your header is supposed to be:
                  < ? include("header.html") ? >

                  and this where your navigation is supposed to be:
                  < ? include("nav.html") ? >


                  (Delete the space inbetween < and ?)
                  youre missing the ;
                  < ? include("nav.html"); ? >
                  <b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
                  See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631

                  Comment

                  • iroc409
                    Confirmed User
                    • Jan 2003
                    • 4728

                    #10
                    duh, you can't... unless i guess you include a php file in the ssi... then that might work. hmm...
                    <a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


                    icq: 1 7 6 4 2 0 9 6 0
                    Gallery templates for ONLY $25! w00t!

                    Comment

                    • Why
                      MFBA
                      • Mar 2003
                      • 7230

                      #11
                      the include is a php function

                      Comment

                      • Why
                        MFBA
                        • Mar 2003
                        • 7230

                        #12
                        so yes you can include php in it. it will be interperate the php thats in the include.

                        Comment

                        • deleteduser
                          Confirmed User
                          • Sep 2001
                          • 2218

                          #13
                          i use the php thing now and it works exellent!
                          gfy at its best! took not even 5 minutes to solve my problem!

                          you guys rock
                          ICQ #58981463
                          Promote my PornAccess Site: 2Chicks1Dick

                          Comment

                          • boldy
                            Macdaddy coder
                            • Feb 2002
                            • 2806

                            #14
                            i can help... hit me up 13605110
                            MacDaddy Coder.

                            Comment

                            • swedguy
                              Confirmed User
                              • Jan 2002
                              • 7981

                              #15
                              Originally posted by michaelw


                              youre missing the ;
                              < ? include("nav.html"); ? >
                              Doesn't matter if you just have one line.

                              Comment

                              • iroc409
                                Confirmed User
                                • Jan 2003
                                • 4728

                                #16
                                Originally posted by Why
                                the include is a php function

                                ahh... ok, i thought php used something else i still don't do a lot of php
                                <a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


                                icq: 1 7 6 4 2 0 9 6 0
                                Gallery templates for ONLY $25! w00t!

                                Comment

                                Working...