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
I agree with Unkwntech. This is such an insecure way to include files into your website, I wish PHP programmers would do away with it altogether. Even so, an array with all possible matches is certainly safer. However, You'll find that the MVC pattern works better and it is more secure. I'd download code igniter and take a tutorial or two, you'll love it for the same reason you wanna use dynamic includes.