What's the best naming convention for the file that stores your defined functions?

Discussion in 'PHP' started by Sapphiro, Apr 23, 2010.

  1. #1
    Hi all, this isn't really a problem but just curious (cause I'm a perfectionist), what do you usually name the file that stores all your defined php functions?

    I have this file which stores all my php functions and also have the statements to connect to my database, right now I'm not sure if its better to name it dbaccess.php or functions.php. Any suggestions?:D
     
    Sapphiro, Apr 23, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    In several commercial applications i have been involved in, functions.php, common.php and commonincludes.php have all been used....

    It really doesnt matter so much as long as you are happy with it :)
     
    lukeg32, Apr 24, 2010 IP
  3. Sapphiro

    Sapphiro Well-Known Member

    Messages:
    1,242
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    175
    #3
    ohh, thanks! I guess I'll stick with functions.php. ;)
     
    Sapphiro, Apr 25, 2010 IP
  4. s.ham

    s.ham Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Linux is case sensitive and windows is not so be careful when you name the function or class.
     
    s.ham, May 2, 2010 IP