runnerjp Posted May 24, 2008 Share Posted May 24, 2008 at the moment i have this <? $page = $_GET['page']; if (ereg('[A-Za-z0-9]',$page) ) { if (file_exists('include/'.$page.'.php')) { include('include/'.$page.'.php'); } else { include('include/main.php'); } } else { include('include/main.php'); }?> but i would also like to add my forum to this code which is forum/$page.'.php' is this possible or will i have to include all my forum files to include Quote Link to comment Share on other sites More sharing options...
runnerjp Posted May 25, 2008 Author Share Posted May 25, 2008 bmp Quote Link to comment Share on other sites More sharing options...
Wolphie Posted May 25, 2008 Share Posted May 25, 2008 Many forum and CMS systems have certain requirements and dependencies, therefore it may not work. However, using an iframe would be best. Quote Link to comment Share on other sites More sharing options...
runnerjp Posted May 25, 2008 Author Share Posted May 25, 2008 nooo iframe is bad option, i hate using it as it can cause bigger problems in the long run... the code allready works but there must be sum way in witch to do 1 thing and also the other Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.