Page 1 of 1

XAMPP ran fine for an hour - stopped working

PostPosted: 09. January 2017 12:26
by JoeKC
Hello,

I downloaded v3.2.2 and installed using windows 10. Also installed Notepad++. Ran through a PHP tutorial and saved the page to XAMPP folder, compiled and ran them perfectly. Now, when I try to access the .php page, it prints the code, rather than compiles it.

Did I accidentally change a setting or what might have happened?

I have completely re-installed BOTH the XAMPP and the Notepad++ ...... still have same result!
Please help. Thanks.

Re: XAMPP ran fine for an hour - stopped working

PostPosted: 09. January 2017 20:17
by Altrea
Hi,

Did you open the file by doubleclick?
Or how do you open the file in your browser?

best wishes,
Altrea

Re: XAMPP ran fine for an hour - stopped working

PostPosted: 10. January 2017 15:12
by JoeKC
XAMPP is running fine. Somehow the browser link changed from "localhost/programname.php" to something like "files/////c:/... ". Not sure how that happened.
So for several hours I was trying to fix a problem, but it was just the link in the browser to the file! Might be instructive to other new users.

If XAMPP doesn't appear to be working:
1. Make sure to click "Start" for Apache on the panel (and MYSQL if using it)
2. Save your PHP files in the XAMPP/htdocs folder.
3. Put your graphics folder in XAMPP/htdocs also. PHP code to access the art files: ".\artfoldername\artpic.png" (note the decimal point)