I am adding a absolute path with the php include.
$path ="/";
instead of include('../connect.php');
i want to include like include($path.'connect.php');
I am adding a absolute path with the php include.
$path ="/";
instead of include('../connect.php');
i want to include like include($path.'connect.php');
If you are using any framework, then follow that, otherwise you can do following:
$path = __DIR__;
include($path . '/connect.php'); // change this to match path