Page 1 of 1

PHP won't work: plain code

PostPosted: 04. May 2015 21:39
by Matiss
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

Re: PHP won't work: plain code

PostPosted: 04. May 2015 21:50
by JJ_Tagy
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.

Re: PHP won't work: plain code

PostPosted: 06. May 2015 16:27
by Matiss
THANK YOU, JJ_Tagy!