failed to open stream: No such file or directory in error

Discussion in 'PHP' started by omarali, Nov 16, 2008.

  1. #1
    Hi everyone, I test script with out the clause or die() no error occured but using the die clause it gave methe bellow error: I did check the file name and path it ok. Could anyone tell me what is wrong. Thanks a lot

    Fatal error: require_once() [function.require]: Failed opening required '1' (include_path='.;C:\php5\pear') in C:\wamp\www\mywebsite\view_user.php on line 8
     
    omarali, Nov 16, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    make sure you put your required file in the right directory...
     
    bartolay13, Nov 16, 2008 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    This error is commonly caused by an incorrect or misplaced:
    /
    ./
    ../
    or trailing /

    in the configure file.

    The script can not locate the file because you have specified the wrong path. So check your config file first and read the remarks.
     
    Colbyt, Nov 16, 2008 IP