I'm new here. I recently uploaded my site. I use the include functions to include the text (content) and menu on my site. But when I go to my site, it doesn't show the things that I normally include. My site is someone753951.zzl.org. It's like PHP isn't even enabled. I hope someone can help me out.
PS: This is the code I use:
to include the menu:
CODE
<?php include("menu.html"); ?>
to include the content:
CODE
<?php
$pages = array("home", "about", "downloads", "trusted", "contact", "upload");
if (isset($_GET['page']) && !empty($_GET['page']))
{
if(in_array($_GET['page'], $pages) && file_exists($_GET['page'].".html"))
{
include($_GET['page'].".html");
}
else
{
include("404.html");
}
}
else
{
include("home.html");
}
?>
$pages = array("home", "about", "downloads", "trusted", "contact", "upload");
if (isset($_GET['page']) && !empty($_GET['page']))
{
if(in_array($_GET['page'], $pages) && file_exists($_GET['page'].".html"))
{
include($_GET['page'].".html");
}
else
{
include("404.html");
}
}
else
{
include("home.html");
}
?>