Jump to content
xisto Community
Sign in to follow this  
chilipie

Page Doesn't Load When This Php Code Is Present ?

Recommended Posts

<?phpswitch($_GET['page']) {   case "home";      include("index.php");   break;    case "gallery";      include("gallery.php");   break;       case "links";      include("links.php");   break;    case "guestbook";      include("../guestbook/");   break;    case "portfolio";      include("portfoilio.php");   break;    case "other";      include("other.php");   break;    case "about";      include("about.php");   break;    case "contact";      include("contact.php");   break;    case "login";      include("/private/");   break;   default:      include("index.php");}?>

The page doesn't load when this code is in it. Weird... :)

If anyone could help me with it I'd be really grateful :) !
Edited by microscopic^earthling (see edit history)

Share this post


Link to post
Share on other sites

independant from the value of page and without any specific errors or such?

Share this post


Link to post
Share on other sites

Is the filename of that file "index.php" ? Because if it is you're just in an infinite loop :)Loading index.php=> default: including index.php==> loading index.php===> default: including index.php[...]:)

Share this post


Link to post
Share on other sites

yup, sounds good. Good luck :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.