I have a PHP website and it's running great. The way it works is that I have a template page, thanks to sarah, that is called with every page and then a secondary page is called for the unique information. Here is how I would access my contacts page:
http://localhost/template.php?x=contacts
What it does is it calls the template.php and the variable x determines what .html page to include. I need to be able to check the existance of a page before displaying it because if someone calls:
http://localhost/template.php?x=contact
it displays a page that looks like crap because it's just the template with no unique info in it. I'd like to check to make sure the file is present, if so, display it, if not, display a general error page. Can someone help? Thanks, Jeremy