Page 1 of 1

XAMPPP doesn't run php programs

PostPosted: 16. May 2016 15:11
by Owen Walker
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.

Re: XAMPPP doesn't run php programs

PostPosted: 16. May 2016 16:55
by JJ_Tagy
PHP must be processed. You can't just open it in a browser. Try instead http://localhost/index.php

Re: XAMPPP doesn't run php programs

PostPosted: 16. May 2016 17:30
by Owen Walker
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.

Re: XAMPPP doesn't run php programs

PostPosted: 16. May 2016 17:39
by JJ_Tagy
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.

Re: XAMPPP doesn't run php programs

PostPosted: 16. May 2016 19:26
by Owen Walker
Because of your help, everything works fine now. Thank you.