Code for Save Bandwidth - PHP

by Dinesh 2012-08-28 18:54:15

Code for Save Bandwidth - PHP


This code will simply include the pages you click on to the index.php. You can save bandwidth by doing this because you don't need to have images on every file you include, only the index page since all the information will be included within the index.

if (isset($_GET['page']))
{
$page = $_GET['page'];
if (file_exists("$page.php"))
{
include ("$page.php");
} else {
include ("404.php");
}
} else {
include ("main.php");
}
?>

Tagged in:

843
like
0
dislike
0
mail
flag

You must LOGIN to add comments