PHP not parsing

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP not parsing

Postby skclewis » 23. October 2011 08:16

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
skclewis
 
Posts: 1
Joined: 23. October 2011 08:10
Operating System: Windows 7 home premium

Re: PHP not parsing

Postby Sharley » 23. October 2011 08:19

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. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: thedartgod and 70 guests