page working with Errors

Discussion in 'PHP' started by gree124, Jan 28, 2008.

  1. #1
    how to fixed this

    PHP Warning: main(./global.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/mkne/public_html/mkgames/mk1.php on line 10
    [22-Oct-2007 05:01:46] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mkne/public_html/mkgames/mk1.php on line 10

    http://www.mknexusonline.com/mkgames/mk1/mk1.php
     
    gree124, Jan 28, 2008 IP
  2. mvl

    mvl Peon

    Messages:
    147
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The solution is in the error message:
    And the file that could not be found is:
    So either put it in your include path, or add the directory where it is to your include path, or add path information to the include statement at:
     
    mvl, Jan 28, 2008 IP
  3. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #3
    so how to i fixex this where all directories is already create
     
    gree124, Jan 28, 2008 IP
  4. mvl

    mvl Peon

    Messages:
    147
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Find the directory where global.php is and put the full path (directory+filename) in the include statement in :
    instead of just the filename.
     
    mvl, Jan 28, 2008 IP