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.. Link to comment https://forums.phpfreaks.com/topic/17841-pages/ 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). Link to comment https://forums.phpfreaks.com/topic/17841-pages/#findComment-76205 Share on other sites More sharing options...
brown2005 Posted August 17, 2006 Author Share Posted August 17, 2006 how do i change this...? Link to comment https://forums.phpfreaks.com/topic/17841-pages/#findComment-76206 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? Link to comment https://forums.phpfreaks.com/topic/17841-pages/#findComment-76209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.