scottjcampbell Posted January 19, 2009 Share Posted January 19, 2009 Hi, i dont really know how to explain this, but i will try my hardest... On my site, i have a file called action.php which is in the root folder. This file has various includes to the files on my site, here is part of it: <? include($_SERVER['DOCUMENT_ROOT'].'/include/session.php'); $action = $_GET['action']; if ($action == getframes ){ include($_SERVER['DOCUMENT_ROOT'].'/include/action/getframes.php'); }if ($action == activate ){ include($_SERVER['DOCUMENT_ROOT'].'/login/activate.php'); I was wondering if, as every page on my website is requested by this one file, would this slow down my website? I mean if this would begin to affect users when i have quite a few online at one time, i would rather just reveal the real path of the page rather than slow my website down. Link to comment https://forums.phpfreaks.com/topic/141455-solved-same-php-file/ Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 It wouldn't really have any effect, lots of applications impliment a front controller in some form or rather. Link to comment https://forums.phpfreaks.com/topic/141455-solved-same-php-file/#findComment-740421 Share on other sites More sharing options...
scottjcampbell Posted January 19, 2009 Author Share Posted January 19, 2009 okay, that is what i was hoping you would say Thank You - Scott Link to comment https://forums.phpfreaks.com/topic/141455-solved-same-php-file/#findComment-740438 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.