Including Files, many files

Discussion in 'PHP' started by kc3, Nov 24, 2005.

  1. #1
    Okay, I'm creating a software that actually needs this, say I have many directories, and they each have a file named main.php, how do I include all these files and be able to add another directory with a main.php file and have it automaticaly included?
     
    kc3, Nov 24, 2005 IP
  2. HN Will

    HN Will Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Name the dirs in an orderly fashion so loops can fly through them
     
    HN Will, Nov 25, 2005 IP
  3. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's true, though there is one problem, that's that I need each file to be named and not with numbers, it's for convenience to my customers so they can just upload a file rather than having to rename it to work. Thanks though, that is something I never considered.
     
    kc3, Nov 25, 2005 IP