Jump to content

Archived

This topic is now archived and is closed to further replies.

brown2005

pages

Recommended Posts

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

Share this post


Link to post
Share on other sites
Probably the fact the one has register globals off (recommended) and one has them on (frowned upon).

Share this post


Link to post
Share on other sites
right i have found how to change this...

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.