Hey... thanks guys... but none of this is exactly what i need... this is the code for swapping pages that I use:
$x = $_GET['x'];
if($x == "") {
$x = "news";
}
include ("$x.php");
?>
I was wandering if it's possible to have an if statement like in the first post so that if it's not on my own server (nitr0x.co.uk) then it just goes to the news page. Is this possible using this method? I need the php navigation like this due to my Tutorial System otherwise it won't work if I put:
include ("http://www.nitr0x.co.uk/$x.php");
and i don't know why