title: One file multiple pages?
body: <p>I've seen loads of websites with one php file (or no-extension file) and multiple pages.
  An example being: website.com/page.php?id=4 where the page content would be different when there's a different id number (instead of 4 - such as 7).</p>
  
  <p>A real life example of this is a game site where the title and game object change as the id number changes - you can see this <a href="http://www.splashworks.com/game.php?id=2" rel="nofollow">here</a> or <a href="http://www.splashworks.com/game.php?id=4" rel="nofollow">here</a> :</p>
  
  <p>As you can see - the game titles and game changes.</p>
  
  <p>Also I'm sure you'll realise even YouTube can do this:
  youtube.com/watch?v=610XM39EE1o - different video title, video, description, comments etc.
  youtube.com/watch?v=LnUGl_A1cYA - different video title, video, description, comments etc.</p>
  
  <p>HOW do people do this? If they use a database do they store the WHOLE html code in there (i.e. go on one of those youtube links, right click and select 'view source') - or do they assign it to another page (i.e. page.php?id=1 would retrieve content from /files/pages/1.php) - but this would be bad on storage and quite pointless, and if this is how its done, forums must be confusing if they can have something like showtopic.php?id=1701&amp;showpost=21.</p>
  
  <p>HOW is this done? Please don't request code I've tried using because I have no clue where to start!.</p>
  
  <p>Thanks in advance for any answers! And sorry if this is a possible duplicate of anything - I don't understand half the language they use on answers on here anyway!</p>