I have 3 files: home, failed_attempt, login.
The file home and failed_attempt all refer to login file.
The annoying thing is that they throw a mistake saying
For the beginners this will help to understand. Use simply the following based on your relative path:
//include file directly from parent directory:
include_once(dirname(__FILE__) . '/../connect.php');
OR
//include file from parent's child directory:
include_once(dirname(__FILE__) . '/../StoredProcedure/connect.php');
OR
//include file from own child directory:
include_once('StoredProcedure/connect.php');
OR
//include sibling files from same directory:
include_once('connect.php');