Search code examples
phphtmldirectoryrequire

PHP/HTML: require_once(config.php): failed to open stream: No such file or directory


just simple question here.

I placed dashboard.php at folder

pages/dashboard/dashboard.php.

But the error appears just like my question. Can I know how to solve this problem ?


Solution

  • The error pretty much explains what the problem is: you are trying to include a file that is not there.

    you have to use this at dashboard.php page :-

    require_once("../../dbconn.php");