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 trialJames Ackerman
14,099 PointsRunning PHP code on a local server
I'm trying to run PHP locally instead of on WorkSpaces. I have XAMPP downloaded and I have Apache and MySQL running. I am at the main screen in the phpmyadmin area.
I'm unsure what to do from here in order to run php code in the console. I've tried saving php files and running them in a browser, but that seems to be only for html, css, and js. Can anyone suggest how to proceed so I can run php code in a console?
3 Answers
Anthony Meyer
2,472 PointsPlease mark your answer as the correct answer so that this comes up as answered.
James Ackerman
14,099 PointsI don't have the option of doing that on my own comments, so I'll mark yours.
Anthony Meyer
2,472 PointsWorks for me! I just kept clicking on it thinking it was unanswered.
James Ackerman
14,099 PointsJames Ackerman
14,099 PointsGot it working. If anyone else need this info, click here for a link to a video on YouTube by Traversy Media on how to get XAMPP installed and how to use Apache and MySQL to run PHP code.