0

So I am very new to this all but I want to learn. I have downloaded MAMP for windows, and ran it. It greenlights mysql and apache. I thought at this point I would have able to open .php files locally and get a desired display but instead it still shows up as hard code. Am I skipping steps?

Wynx
  • 27
  • 8

2 Answers2

2

You have to put your php project's folder or simple php files inside

C:\mamp\htdocs\your_project_folder

or single file program

C:\mamp\htdocs\simple_program.php

and start the Apache Server using MAMP Control Panel

In Browser visit:

For Full Project

localhost/your_project_folder/index[.php, .html]

or for simple single file php programs located at htdocs\your_program.php

localhost/your_program.php

You can put PHP or HTML files inside htdocs folder ans then you can access them by localhost.

Hiren
  • 613
  • 1
  • 8
  • 25
0

This might happen due to several reasons, you should check this answer https://stackoverflow.com/a/5121589/7838027

Community
  • 1
  • 1
Оzgur
  • 432
  • 2
  • 10