require_once error

Discussion in 'PHP' started by b2breps, Jan 15, 2012.

  1. #1
    When ever i put the require_once in, i go to the website and it says that there is an error with function:require.
    How do i fix that?
     
    b2breps, Jan 15, 2012 IP
  2. modz

    modz Well-Known Member

    Messages:
    95
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
    #2
    And what is the error?
     
    modz, Jan 15, 2012 IP
  3. b2breps

    b2breps Active Member

    Messages:
    926
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    60
    #3
    thanks..here is the exact wording

    Warning: require_once(/hermes/bosweb/web023/b239/d5.pokeswap/public_html/spyinc/wiki/extensions/Editcount) [function.require-once]: failed to open stream: No such file or directory in /hermes/bosweb/web023/b239/d5.pokeswap/public_html/spyinc/wiki/LocalSettings.php on line 159

    Fatal error: require_once() [function.require]: Failed opening required '/hermes/bosweb/web023/b239/d5.pokeswap/public_html/spyinc/wiki/extensions/Editcount' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web023/b239/d5.pokeswap/public_html/spyinc/wiki/LocalSettings.php on line 159
     
    b2breps, Jan 16, 2012 IP
  4. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #4
    You essentially have a "file not found" error. I'd say that either the path to your file "Editcount" is incorrect or you need to enclose it in quotes.
     
    rainborick, Jan 16, 2012 IP