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 trialrachelweaver
15,876 PointsDo I need to install PHP? I need help?
I am trying to build a contact form with jquery and php it's not working. Do I need to install Apache or MySQL? I looked at the php official website and this was recommended. I am not building a mailing list or anything I just want messages from my contact form to go to my inbox. I am not familiar with backend development and I am lost.
3 Answers
Ted Sumner
Courses Plus Student 17,967 PointsOn XAMPP, you put your project in the htdocs folder in the XAMPP Folder. If you are going to do multiple projects and you don't want to restructure, then have your project folder in the htdocs folder.
Then you use localhost for any project that has the index file in the htdocs folder and localhost/folder_name for other projects. Have no spaces in those folder names.
Ted Sumner
Courses Plus Student 17,967 PointsYou need some form of server software for PHP. I use XAMPP because it has other things as well, but PHP has a built in server that few people use.
rachelweaver
15,876 PointsHow would I host the php file on a server? Do I need to setup a database? I downloaded AMPPS. Do I need to transfer my site to it's domain first? I am using cyberduck as my ftp software.
Ted Sumner
Courses Plus Student 17,967 PointsYou will have to look at the documentation, but generally you move your project to the right folder an make sure AMPPS is running, then open the drone the through localhost. It will be in the documentation.
rachelweaver
15,876 PointsI am still totally confused on what folder to even put my file in. I uninstalled AMPPS and installed XAMPP because there is more information and better documentation.
rachelweaver
15,876 Pointsrachelweaver
15,876 PointsThanks!