Successful installation but PHP script does not work

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

Successful installation but PHP script does not work

Postby epalmer » 22. December 2015 23:14

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
epalmer
 
Posts: 3
Joined: 22. December 2015 23:04
Operating System: Windows 10

Re: Successful installation but PHP script does not work

Postby Nobbie » 22. December 2015 23:28

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)?
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Successful installation but PHP script does not work

Postby epalmer » 23. December 2015 00:05

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
epalmer
 
Posts: 3
Joined: 22. December 2015 23:04
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests