XAMPPP doesn't run php programs

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

XAMPPP doesn't run php programs

Postby Owen Walker » 16. May 2016 15:11

I have downloaded XAMPP so I can write and run php programs. But, even though I have Apache running properly, when Itry to open a php program in a browser, all I get is the code repeated verbatim, an (such as d the intended program does not run. (for esample c:\xampp\htdocs\index.php.Also, all my attempts to run local host just get me to the XAMPP web site. I have tried the suggested corrections on the intenet to problems running php programs such as changing the port) and none of them works.
Owen Walker
 
Posts: 4
Joined: 16. May 2016 14:46
XAMPP version: 7.0.6
Operating System: Windows 10

Re: XAMPPP doesn't run php programs

Postby JJ_Tagy » 16. May 2016 16:55

PHP must be processed. You can't just open it in a browser. Try instead http://localhost/index.php
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: XAMPPP doesn't run php programs

Postby Owen Walker » 16. May 2016 17:30

IThnaks for your prompt reply. I've now tried opening in IE, Mozilla, and Chrome the file http://localhost/index.php, as you suggested. In the first two browsers I get XAMPP web site and in Chrome some small faint boxes with not much in them. I've also just tried opening http://localhost:8080/index.php in all three browsers, to no effect. (I read somewhere earlier that that change might be helpful. I take it the correct way of running http://localhost/index.php is trying to open it in a browser; but if I'm wrong about this, I'd appreciate being told.
Owen Walker
 
Posts: 4
Joined: 16. May 2016 14:46
XAMPP version: 7.0.6
Operating System: Windows 10

Re: XAMPPP doesn't run php programs

Postby JJ_Tagy » 16. May 2016 17:39

Yes, the default XAMPP site is located where you described. If you see the dashboard, then PHP is operational. If you expect something else, tell us what you are looking for.

8080 has nothing to do with this. That is for those that change the default port.
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: XAMPPP doesn't run php programs

Postby Owen Walker » 16. May 2016 19:26

Because of your help, everything works fine now. Thank you.
Owen Walker
 
Posts: 4
Joined: 16. May 2016 14:46
XAMPP version: 7.0.6
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests