hi wildteen88, that's great, thank you so much for that! the code works fine for loading files from the _root directory but when it needs to pull something from the /news/ folder, i get the following error message... Fatal error: Call to undefined function: file_exisits() in /var/www/html/clients/npr/main.php on line 40 ...that line of syntax is... [code]elseif(file_exisits('./news/' . $filename . '.php')) { include './news/' . $pagename . '.php'; } // if it couldn't be found display message else { echo $pagename . '.php could not be found in either the root folder or the news folder!'; }[/code] do you by any chance know why this could be happening? i've tried a few small things like taking out the full-stop infront of ('./news/' etc. but to no avail unfortunately. thank you very much once again and i'd be grateful if you could get back to me at some point please. all the best, mark