Right, when I try to run from the browser the page appears messy like the previous screenshot, i am not sure if you can see that?
http://imgur.com/a/umbny Hmm. something is seriously not right with your server setup. From that screenshot it looks like its dumping raw code rather than executing it, which shouldn't even be possible, unless its not actually being parsed by PHP. have you been able to correctly run any other PHP code on the server?