Originally posted by Beach Bum This should also work fine.
But you'll need to change $page = "index.php" to $page = "index" for it to work properly, and also have to use if(file_exists($page.".php")) to ensure the file being included actually exists.
[J]ona
Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.
i realised my mistake after posting thanks scott but now i dont get a parse error i think its working but the server is down as its not loading any files from this link, even if i go to hp it still doesnt work, yet ftp does, and so does this file loads, i dont know gotta test once i find out wtf happened to it and why sites arnt loading, thanks, let you know if it doesnt work, im sure it will tho, thanks guys
nope doesnt work, go to page.php i directs me to google, if i go to say
page.php?link=space&page=01
i doesnt go anywhere should go to
sections/space/01/index.html
what version of php would i need to use this script just an idea why it doesnt work, or could be the coding is wrong? im confused becuase it looks like it should work, but doesnt
ok this is what i have so far works, jst doesnt redirect if you go to page.php, dont need to worry bout if say page=something that dont exist, tihs is what im using atm
ok sorry the above code is what i currently have saved in page.php, if you go directly to this page.php it doesnt redirect to www.google.com, thats all i need to sort. Thanks Jona
Bookmarks