So, if I'm understanding this correctly, this script will get 'pages' and look for a match in index.php, and when it finds one, it echoes 'stuff here'.
That's not what I'm looking for. I don't want to keep my content in index.php, I want to keep the content for each separate page in its own file, so I can more easily add pages. Think of it this way: When someone accesses index.php?page=home, the PHP script loads the file 'home' from the directory it's in and outputs it. The script doesn't search for a match listed in index.php and then display the associated info. If I did it that way, index.php would be several MB in size. This way, I can easily add new pages just by uploading one small file, rather than downloading several MB of data, finding what I want to edit, editing it, and uploading it again.