Jump to content


Photo

pages


  • Please log in to reply
3 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 17 August 2006 - 02:22 PM

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..

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 August 2006 - 02:26 PM

Probably the fact the one has register globals off (recommended) and one has them on (frowned upon).

#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 17 August 2006 - 02:27 PM

how do i change this...?

#4 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 17 August 2006 - 02:32 PM

right i have found how to change this...

but one thing in the control panel is php4 or php5... which should i have?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users