browser displays PHP as a plain text

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

browser displays PHP as a plain text

Postby wallbridge13 » 22. May 2013 11:46

Hi there. New to PHP, HTML, Apache and Xampp et al. But learning fast - managed to turn on PC this morning!!

I'm having the same problem as Asaf but your suggestions don't seem to work for me.

Any help out there?

Thank you.

[edit by Altrea: splitted from original thread: One thread per unique user and issue rule]
Posts: 1
Joined: 22. May 2013 11:42
XAMPP Version: 5.6.14
Operating System: Windows 7

Re: browser displays PHP as a plain text

Postby Altrea » 22. May 2013 16:24

Hi wallbridge13,

Without any information about how you open the file, what url your browser address bar shows, what "php plain text" output you get and what sourcecode your php file has it is difficult to guess what your issue is.

The most common "php don't get parsed issues":
  • Using short_open_tag
  • wrong Browser request (file:// instead of http:// protocol)
  • File extension .html instead of .php
  • wrong encoding (UTF8 with instead of without ByteOrderMark, UCS2 or other Multibyte- or other non-ANSI character encodings)

best wishes,
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 7302
Joined: 17. August 2009 13:05
XAMPP Version: 5.6.3
Operating System: Windows 10 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests