index.html and index.php - who loads first?

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

    #1

    index.html and index.php - who loads first?

    lets say i have index.html and index.php in a directory.. on my computer, index.html loads first - will it be like that on all computers?
  • Dawgy
    Confirmed User
    • Jul 2001
    • 5856

    #2
    depends on what order theyre listed in your httpd.conf file
    the revolution is coming.

    Comment

    • brizzad
      holla
      • Jul 2003
      • 11769

      #3
      Originally posted by Dawgy
      depends on what order theyre listed in your httpd.conf file

      i guess what i meant to ask was.. if it loads first on my computer, will it load first on all computers?

      Comment

      • Steen2
        Confirmed User
        • Feb 2004
        • 7662

        #4
        By default I think html but don't quote me on that.
        ICQ: 2262.73945

        Comment

        • BloodFart
          Confirmed User
          • Feb 2004
          • 728

          #5
          Originally posted by brizzad
          i guess what i meant to ask was.. if it loads first on my computer, will it load first on all computers?
          yes
          Jesus = harry potter 2000 years ago.

          Comment

          • broke
            Confirmed User
            • Aug 2003
            • 4501

            #6
            Originally posted by BloodFart
            yes
            Perfect Gonzo

            Comment

            • smashface
              Confirmed User
              • Sep 2002
              • 991

              #7
              Originally posted by brizzad
              i guess what i meant to ask was.. if it loads first on my computer, will it load first on all computers?
              Like others said, yes it will load the same on all computers accessing that server unless they are linking to a specific page:

              foo.com/index.php instead of
              foo.com/

              Comment

              • broke
                Confirmed User
                • Aug 2003
                • 4501

                #8
                Originally posted by Steen2
                By default I think html but don't quote me on that.
                Perfect Gonzo

                Comment

                • Steen2
                  Confirmed User
                  • Feb 2004
                  • 7662

                  #9
                  Originally posted by broke
                  fucker
                  ICQ: 2262.73945

                  Comment

                  • Dynamix
                    G F Y not
                    • Jan 2004
                    • 2910

                    #10
                    If it loads first for you then it will for all other accessing computers. The Index page is sent based upon Apache or your webserver settings, not user-by-user.

                    TGPFactory Full TGP Design & Installation Services
                    ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
                    See who I am at AdultWhosWho.com!

                    Comment

                    • broke
                      Confirmed User
                      • Aug 2003
                      • 4501

                      #11
                      Apache will resolve to the first file type listed in the DirectoryIndex directive in the httpd.conf file. If there is no file with that extention in the directory then it will go to the next.


                      DirectoryIndex index.html index.htm index.php index.shtml


                      If you had all four in your root directory, everyone would see index.html. If you had the last three, everyone would see index.htm. If you had the last two, everyone would see index.php.

                      Unless someone linked directly to one of the pages...
                      Last edited by broke; 11-29-2004, 09:34 PM.
                      Perfect Gonzo

                      Comment

                      • Xtreme Fever
                        Confirmed User
                        • Aug 2004
                        • 234

                        #12
                        Originally posted by broke
                        Apache will resolve to the first file type listed in the DirectoryIndex directive. If there is no file with that extention in the directory then it will go to the next.


                        DirectoryIndex index.html index.htm index.php index.shtml


                        If you had all four in your root directory, everyone would see index.html. If you had the last three, everyone would see index.htm. If you had the last two, everyone would see index.php.

                        Unless someone linked directly to one of the pages...
                        what he said

                        Comment

                        • nofx
                          Too lazy to set a custom title
                          • Nov 2002
                          • 16826

                          #13
                          wigg3r.php loads first on all computers

                          Often times I wonder why
                          There's love and hate, theres live or die.
                          When sickness comes I must decide:
                          When feelings go, theres suicide.

                          Comment

                          • Red Ezra
                            redezra.com
                            • May 2004
                            • 4680

                            #14
                            index.html

                            Comment

                            • broke
                              Confirmed User
                              • Aug 2003
                              • 4501

                              #15
                              Originally posted by Red Ezra
                              index.html
                              Really --

                              DirectoryIndex index.shtml index.php index.html index.htm

                              What loads first?
                              Perfect Gonzo

                              Comment

                              • fuzebox
                                making it rain
                                • Oct 2003
                                • 22353

                                #16
                                Originally posted by broke
                                Really --

                                DirectoryIndex index.shtml index.php index.html index.htm

                                What loads first?

                                Comment

                                • broke
                                  Confirmed User
                                  • Aug 2003
                                  • 4501

                                  #17
                                  Originally posted by fuzebox
                                  Perfect Gonzo

                                  Comment

                                  • fulcrumstudio
                                    Confirmed User
                                    • Mar 2004
                                    • 414

                                    #18
                                    Furthermore if you have virtual domains on your server it's possible that not all virtual domains on the box will load the same... depends how you are assigning your virtual domains in httpd.conf
                                    Last edited by fulcrumstudio; 11-30-2004, 01:00 AM.
                                    SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

                                    Comment

                                    Working...