Thanks. But if permissions are set correctly, then anything that's requested in the URL string that's outside of the web site's root folder should return a permission denied error, right? Really I'm worried about someone trying to run a script or something else like that... What if I change it so that
<?php
$page = $_GET['page'];
if (isset($page)) {
include("$page.html");
} else {
include("main.html");
}
?>
Would this limit it to requests for .html files only? I'll admit that I'm pretty much a total newbie to PHP so I understand it's probably a lot more complicated than this, but I'm trying to get this done as quickly as I can with the least amount of programming possible... Right now I'm only looking at serving static files with the possibility of a MySQL DB connection in the future.
Edited to add:
OK, I realize now I need to add some way to keep people adding urls of documents on outside servers. What is the best way to do this? Check against an array or a database? Switch statement?