So the main aim for me is to make my website smaller by having minimal amount of pages but including just as much content. Now this is one technique I have seen yet am pondering how to do it properly.
Now, i'm planning to use this for the pages which are basically staying static apart from the news page.PHP Code:
$page = $_GET['page'];
if (($page == "home") or ($page =="")) {
include('news/news.php');
} else if($page == "about") {
include('includes/about.html');
http://www.kezzer.co.uk/
There's my website so you can check it out. I've just done a quick design update, the header and nav bar have changed slightly but there's still more work to be done to it.
The pages i'm planning to use the include() function on are every single one apart from articles, tutorials and reviews as these will be produced from the database which will be on a seperate page called article.php.
Now the one question i had was, how the hell does it catch the URL by saying if (($page == "home"). how is "home" defined? Someone told me it does this by default? /me is lost
I can't seem to find anything relating to it at all which is quite confusing.
Help please