Warning failed open stream??

Discussion in 'PHP' started by seobrien, May 15, 2007.

  1. #1
    Warning: main(/home/rareexc/public_html/Garden/Menu.asp) [function.main]: failed to open stream: No such file or directory in /home2/rareexc/public_html/Garden/Eagles/hotel.php on line 48

    My site suddenly has this error on pages throughout

    For example
    http://www.rareexception.com/Garden/Eagles/hotel.php

    I haven't changed the code so I can only imagine something has happened to my server settings???

    Thanks!!
     
    seobrien, May 15, 2007 IP
  2. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Means the file "Menu.asp" is missing from the path it lists.
     
    CodyRo, May 15, 2007 IP
  3. seobrien

    seobrien Peon

    Messages:
    222
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ah but it isn't, I haven't moved it, renamed it, or changed the code on the page to refer to another source.
    The only thing that strikes me as odd is that the error implies it is looking in
    /home/rareexc/public_html/Garden/Menu.asp

    Yet the base HREF refers to http://www.rareexception.com/Garden/
     
    seobrien, May 16, 2007 IP
  4. donteatchicken

    donteatchicken Well-Known Member

    Messages:
    432
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    118
    #4
    did you (or some1) change your site root to "home2" ?

    if so look through your pages for "/home/rareexc/public_html" and change them to "/home2/rareexc/public_html"
     
    donteatchicken, May 16, 2007 IP
  5. legend2

    legend2 Well-Known Member

    Messages:
    1,537
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    115
    #5
    includes are not dependent on the base href you use in your html.
    if a full path is not given, then it is relative to the directory from where you are trying to include.
    so if file x is in directory d trying to include y, then you are including d/y
     
    legend2, May 16, 2007 IP