PDA

View Full Version : this wont work on my host


xShanex
Sat 5th Oct '02, 2:12am
My host has some php problems and it hasn't been fixed yet and im wondering why this code won't work anymore:

<?php
switch($id) {
default:
include('main.htm');
break; case "blah":
include('blah1.htm');
break; case "blah2":
include('blah2.htm');
break; case "blah3":
include('blah3.htm');
break; case "blah4":
include('blah4.htm');
break; case "blah5":
include('blah5.htm');
}
?>


Now i know the code is right because it worked yesterday fine (i use it for my navigation) My question is what part of php is not working right,like maybe they messed it up somehow?

Also my server load average wont load in my vB cp anymore..

Chen
Sat 5th Oct '02, 5:18am
The default case should be the last one.

xShanex
Sat 5th Oct '02, 5:34am
No that doesn't work either i got an error,but what im saying is that theres something wrong with my host's php and wondering where in the php it's messed up at.

See:

current host (doesn't work) - http://www.entensity.net/blah/example.php
another server same code (works)- http://www.opie3k.net/blah/example.php

Just click the links and you'll see what i mean.