So I am a newbie in PHP but I need to make an assignment, in which I have to put together a web page using PHP and MYSQL.
While I was creating my pages in PHP with ATOM text editor, I wanted to create the different elements of the page in separate files. For example, I created a head.php and a header.php, and I wanted to include them in the index.php.
No matter how I adjusted the path, I just couldn't get it to work.
I even tried:
-include($_SERVER['DOCUMENT_ROOT']."/includes/head.php")
and require()
and The full path to the file
Here are some screens to help you better understand.