I’m new to PHP and I’m wondering how to structure my website. My site will consist of 7 pages total. I’ve done some research and found that most PHP sites use a pyramid structure where each directory has its own index.php page. Is this really required when the number of pages will not change? What’s the benefit of doing this? And are there any drawback to just placing each page in the root directory?
Also, I’m a bit confused as to how navigation with variables is handled in PHP site. For example, a homepage will be: “