View Single Post
Old 11-17-2005   #5 (permalink)
.Silver
nitr0x.co.uk owner
 
Join Date: Nov 2005
Location: Oxfordshire, UK
Posts: 2

Send a message via AIM to .Silver Send a message via MSN to .Silver
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
__________________
My signatures!
.Silver is offline