Page 1 of 1

PHP not parsing

PostPosted: 23. October 2011 08:16
by skclewis
I just installed XAMPP 1.7.7 under Win7. Everything checked fine. I wrote a simple "hello world" html page embedding a php echo line to print "hello world". When I opened the html file in my brower (both firefox and IE) I get the title but a blank screen displayed. when I view the source I see the php script rather than the html. What do I need to do to get it to parse. I tried using a php file just echoing for hello world and it displays fine in the browsers. so the problem is the parsing.

Thanks

Re: PHP not parsing

PostPosted: 23. October 2011 08:19
by Sharley
http://locahost/yourfile.php if it contains a mix of html and php code or the server won't know to parse the php code unless you tell it to by using the php file extension.

Good luck. :)