Hello, I want to get or choose the right way or right path to require/include a file ..
my project directory structure is here .
project/forms/student/create.php and i want to add a file in the create.php
from the directory structure this project/dbConnection.php..
how can i add a file in it form this path?
I assume you don't have a PHP entry point, e.g. an index.php file that will allow you to define a helper functions file for all requests? So, in that case, relatively referencing the database connection script would be handled like this:
my create.php source code in the browser is showing this <link rel="stylesheet" href=" ../css/style.css">
and my css dir structure is project/css/style.css