brown2005 Posted August 17, 2006 Share Posted August 17, 2006 if(!isset($page))$page="home";switch($page){case "home":$file="files/home.php";break;case "test":$file="files/test.php";break;}IS THERE ANY REASON WHY THIS WOULD WORK ON ONE WEBSITE AND NOT ANOTHER.. Quote Link to comment Share on other sites More sharing options...
trq Posted August 17, 2006 Share Posted August 17, 2006 Probably the fact the one has register globals off (recommended) and one has them on (frowned upon). Quote Link to comment Share on other sites More sharing options...
brown2005 Posted August 17, 2006 Author Share Posted August 17, 2006 how do i change this...? Quote Link to comment Share on other sites More sharing options...
brown2005 Posted August 17, 2006 Author Share Posted August 17, 2006 right i have found how to change this...but one thing in the control panel is php4 or php5... which should i have? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.