Page 1 of 1

unable to run PHP script on my computer using xampp

PostPosted: 26. August 2022 18:38
by rwuser
Hello Community:

I have installed xampp 8.1.6 on my computer. I use Windows 10.

What adjustments must I make to get PHP script on my computer?

I wrote some PHP script that took input from a form with two text boxes. The output was simply what was input. The form DID NOT perform as expected when I clicked the submit button.

I then uploaded the form and script to a server that hosts one of my web sites. The script WORKED as expected.

I conclude that xampp is not properly configured on installed.

I found resources online, including YouTube videos, that help you to install xampp and start Apache server, but nothing helpful on what to do if it does not work.

Perhaps there is another thread that discusses this issue.

Thank you in advance.

Robert

Re: unable to run PHP script on my computer using xampp

PostPosted: 27. August 2022 08:43
by Altrea
save your files in /xampp/htdocs/ (e.g. C:/xampp/htdocs/form.php)
request the files by browser with help of the special localhost domain ( e.g. http://localhost/form.php)