Hello everybody,
This is my first post here.
I've got a problem. On my localhost, I've made a script that works fine. The script gets the variables passed through the URL, and finds the pages to include based on the var's content.
But when I test this script on my remote host, I get an error that the specified function has not been found.
The function is in my main index.php, and looks like this:
function output()
{
// if place is not set.
if (!isset($_GET["place"])) {
// if module is not set.
if (!isset($_GET["module"])) {
// Open the welcome page.
if (isset($_GET["disclaimer"])) {
include ("disclaimer.php");
} else {
frontpage();
}
} elseif (isset($_GET["module"])) {
$module = $_GET["module"];
include ($site_root . "modules/" . $module . "/" . $module . ".php");
} elseif (isset($_GET["place"])) {
$place = $_GET["place"];
include ($place . ".php");
} else {
}
} else {
$place = $_GET["place"];
include ($place . ".php");
}
}
The I place an output(); in a template I've made, and it all should work. I've done this on 2 different servers already, without problems, but on my new one it gets errors. The template is just a plain html document with some small PHP code embedded. If I include index.php, of course this will end up in a neverending loop.
Help is much Appreciated,
Eddy Luten