Jump to content

[SOLVED] Same PHP File


scottjcampbell

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.