Help in Fatal error: require() [function.require]: Failed opening required

Discussion in 'PHP' started by Talat50, Oct 14, 2010.

  1. #1
    Hello Freinds i have been disturbed by this error much.
    i m sure i m giving right path.Because i m browsing it.As macromedia provide Browse file option.




    Fatal error: require() [function.require]: Failed opening required '../../admin/viewsellers.php' (include_path='.;C:\php5\pear') in C:\wamp\www\architecturedataforebazaradminviewscreenshot\Final_EBazar\Final_EBazar\Seller\classes\Seller_DAO.class.php on line 48
     
    Talat50, Oct 14, 2010 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    It means the file does not exist at given location.

    Best practice to include any file is to use $_SERVER['DOCUMENT_ROOT'] concatenated by the path from the root of your website.
     
    mastermunj, Oct 14, 2010 IP