ok, so now i'm using:
PHP Code:
<?php
if ($_REQUEST['page'] != "")
{
include ("$page");
}
else
{
include("news/news.php");
}
?>
this is an improvment. now the page changes when i go to index.php?page=stuff
now my only problem is that i get this error:
Quote:
Warning: main(): Failed opening '' for inclusion (include_path='.;c:\php4\pear') in C:\network\Apache2\htdocs\index.php on line 39
|
line 39 is
PHP Code:
include ("$page");