Not sure how to write main(common.inc) or main(table_names.inc)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cargilcm
    New Member
    • Aug 2007
    • 7

    Not sure how to write main(common.inc) or main(table_names.inc)

    Hello all,
    You may wish to skip to the "-------" part

    I apologize for being so new to this community as to not have updated my user profile. I intend on posting IT jobs soon, becoming a regular contributor where possible, and to giving back whatever I can.

    Background of scenario: I have recently taken up programming as a hobby and have been utilizing my intuition and a lot of time to learn how to enhance my company's website (which I just built...first try!!).>>>
    -------------------------------
    I am trying to add employee login functionality /timekeeping capability to enhance our website. I have been testing my ability to add this module on my personal site and have not yet been successful. Upon loading the index.html for the timesheet module - located: christophercarg ile.com/webserver3/index.html - an "main(table_nam es.inc) not found" error and "main(common.in c) not found" error are returned.

    I tried defining these "vars?" but do not know what they should be. Please help if possible or advise..Any comments, feedback, suggestions would be helpful and much appreciated.

    Thank you VERY much,
    Chris

    Note: please visit my site to download, view the code.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Chris. Welcome to TSDN!

    Have a look at this page for more information on what might be going wrong.

    Comment

    • cargilcm
      New Member
      • Aug 2007
      • 7

      #3
      Link for Downloading Code(s): Main and class.authentic ationmanager.ph p

      My apologies...you can download the files here:

      Last edited by cargilcm; Sep 6 '07, 12:24 AM. Reason: invalid link

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Heya, Chris.

        You may want to expand your include_path:
        [code=php]
        ini_set('includ e_path', ini_get('includ e_path') . ":{$_SERVER['DOCUMENT_ROOT']}/path/to/includes/dir");
        [/code]

        It seems like the problem is that you're calling require(), but PHP doesn't know where the files you're trying to require() are.

        Comment

        Working...