This is one of the first scripts I created, it is to get those cool ?page= urls 
Code:
<?php
/*
* PHP SITE FOR THE PHP KNOW-NOTHING!
* Created by Opalelement, who can be
* found anywhere on the internet.
* Google me.
*
* In the code there are 3 options for
* setting the URLs up. It is best to
* choose one and keep it throughout
* the site.
*
* MAKE SURE THAT YOU SAVE THIS FILE
* AS A PHP FILE. IF IT IS SAVED AS
* HTML IT WILL DISPLAY THE CODE.
* YOU CAN HOWEVER RENAME THIS FILE.
*
* ============================
* Anything surrounded by equals
* signs like this is HTML that
* will appear. Feel free to
* use and redistribute this.
* ============================
*/
?>
====================================================================================
This is your header. It will appear on any of the following methods.
====================================================================================
<?php
if(!$_SERVER['QUERY_STRING']) {
// This is your main page, such as index.php or http://site.com/
?>
====================================================================================
This is your index.
====================================================================================
<?
} elseif ($_SERVER['QUERY_STRING'] == "about") {
// This method will be any URL such as http://site.com/index.php?about or http://site.com/?about
?>
====================================================================================
HTML of the About page (do not include header and footer code)
====================================================================================
<?
} elseif ($_GET['act'] == "rules") {
// This will make something like http://site.com/?act=rules or http://site.com/index.php?act=rules
?>
====================================================================================
HTML or rules page (no header or footer HTML... again...)
====================================================================================
<?
} elseif ($_GET['goingto'] == "join") {
// This shows that it doesn't have to be ?act=, it can be anything... ?action= or ?do= or whatever you please
?>
====================================================================================
I won't even tell you what goes here and what not to include, you should know by now.
====================================================================================
<? } ?>
====================================================================================
All footer HTML should go here.
====================================================================================
Bookmarks