Is there any way to safely include pages without putting them all in an array?
if (preg_match(\'/^[a-z0-9]+/\', $_GET[\'page\'])) { $page = $_GET[\'page\'].\".ph
You should never use user supplied information for includes. You should always have some sort of request handler that does this for you. While a regular expression may filter somethings it will not filter everything.
If you do not want your site to get hacked you do not allow your users to control the flow of the application by designating an include.