Page 1 of 1

Successful installation but PHP script does not work

PostPosted: 22. December 2015 23:14
by epalmer
Hi,

Thanks in advance for your help. I installed XAMPP 5.6.15, localhost on Microsoft Edge showed the welcome page but was not able to get a simple PHP script to run.

I have Windows 10 and got a message that UAC would not allow some aspects to work.

The script was:

<?php
echo "<h1>Hello World!</h1>"
?>

Browser opens, closes, and shows me a download page for IE.

I would appreciate any suggestions.

Thanks again,

Eric

Re: Successful installation but PHP script does not work

PostPosted: 22. December 2015 23:28
by Nobbie
What is the name if the script, where is it stored (full pathname) and how do you open it (what do you enter in your browser)?

Re: Successful installation but PHP script does not work

PostPosted: 23. December 2015 00:05
by epalmer
Good questions! You got right to the heart of the problem, which I discovered as I read through the FAQ.

The reason that it did not work was that I did not store the script in htdocs. Once I did, I entered http://localhost.filename.php into the browser and the script ran.

I think that the UAC messages during installation convinced me that I would have problems.

Thanks for your help!

Eric