You can't open a PHP file with live server. Instead, type localhost/ on any browser. I think there is an other extension called Five Server which could normally open PHP files but i don't use it so I can't tell you if it really works.