PHP error - very simple but I don't know anything about PHP

Discussion in 'PHP' started by wyomble, Apr 5, 2010.

  1. #1
    I'm getting this error:

    Warning: require_once(./Unified/DeltaDatabase.php) [function.require-once]: failed to open stream: No such file or directory in /home/mybaby5/public_html/www.glasssteelandstone.com/GSS_Contribute.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required './Unified/DeltaDatabase.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mybaby5/public_html/www.glasssteelandstone.com/GSS_Contribute.php on line 4

    It is probably really easy to fix but since I know nothing about PHP I don't really know what it is trying to tell me. Line 4 of the file in question is: require_once('./Unified/DeltaDatabase.php');

    This is a site I purchased and I really don't know how it was setup. Any help would be appreciated :)
     
    wyomble, Apr 5, 2010 IP
  2. Fervid

    Fervid Well-Known Member

    Messages:
    161
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Sounds like the script can't find the ./Unified/DeltaDatabase.php file. Does that file exist in that location?
     
    Fervid, Apr 5, 2010 IP
  3. wyomble

    wyomble Peon

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    does the "." refer to http://www.mydomain.com? If so then no, it is not in that location. I'm assuming I must find that file, put it in that location, and that should solve the problem correct?
     
    wyomble, Apr 5, 2010 IP
  4. Fervid

    Fervid Well-Known Member

    Messages:
    161
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #4
    The single dot refers to the current directory the script is being run from. From the error message you posted I think so.
     
    Fervid, Apr 5, 2010 IP
  5. wyomble

    wyomble Peon

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the help. I'll look for that DeltaDatabase.php file and move it.
     
    wyomble, Apr 5, 2010 IP