Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAhmad Tharwt
813 PointsHow to run a php file in the browser?
When I'm trying to run a php file in the browser it shows the script for me
5 Answers
Alejandro Narvaja
Courses Plus Student 7,340 PointsYou must do some of these steps, depending on whether you have Windows or Mac OS:
Ahmad Tharwt
813 PointsI already have WAMP server installed and running Will it work only with MAMP?
Alejandro Narvaja
Courses Plus Student 7,340 PointsIf you have WAMP installed you should be equal, it has the same functions. What happens that PHP does not work for you? You should apply the same ideas of those two links that I passed to you, the servers all work alike.
What do you do that PHP does not work for you? Does it give an error? If you explain a little more in detail I could help you.
Ahmad Tharwt
813 PointsIn the training, she executed the file from the browser not from the command line
when I tried to do that it displays the script and don't execute it
Alejandro Narvaja
Courses Plus Student 7,340 PointsYou have the WAMP server started? In the options of WAMP, you have the option to see your localhost server. In this folder you have to put in the file .php
You can show us a screenshot of your PC?