PHP won't work: plain code

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

PHP won't work: plain code

Postby Matiss » 04. May 2015 21:39

Hello.

I'm a newcomer to programming. I downloaded the newest version of XAMPP, installed it, turned on Apache. But even the simplest code in my browser will be showcased as a plain PHP code. Code is fine.
I've tried everything to fix it. I changed Apache port 80 to unassembled port. I tried every offered solution which can be found here:

https://community.apachefriends.org/f/viewtopic.php?f=16&t=67997#p233795

And yes, I am writing it in my browser as URL, like http://localhost:1234/tutorials/text.txt

Please help. So far somehow I'm still interested in programming. :D
Matiss
 
Posts: 2
Joined: 04. May 2015 21:21
Operating System: Windows 8

Re: PHP won't work: plain code

Postby JJ_Tagy » 04. May 2015 21:50

Matiss wrote:And yes, I am writing it in my browser as URL, like http://localhost:1234/tutorials/text.txt

If you do not have the .php extension, your system will not know to process it as PHP.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: PHP won't work: plain code

Postby Matiss » 06. May 2015 16:27

THANK YOU, JJ_Tagy!
Matiss
 
Posts: 2
Joined: 04. May 2015 21:21
Operating System: Windows 8


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 124 guests