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 trialnarvesh pradhan
2,958 Pointshey php group!!! i am really in confuse what to do
is xampp and composer different software for php project. i ve tried with xampp and aptana to make a website but it always shows eror 404. i couldn't access through the local host server. can any body explain briefly about this matter??
2 Answers
Ted Sumner
Courses Plus Student 17,967 PointsXAMPP is the server emulator program you run on your local computer. In order to use it, you have to put your project in the htdocs folder in the XAMPP installation. I don't know if there is a workaround to that. If you project is in a folder in htdocs, then you want to use http://localhost/folder to access your project.
XAMPP does not typically send email from contact forms and such. It can be configured, but I do not know how to do it. There is a post about it here on the forum somewhere, though.
Composer is a dependency management tool for PHP that does not require XAMPP to run. It installs code into a folder in your project.
narvesh pradhan
2,958 Pointsi am doing just like that but i don't know why it is not functioning well. when i run php file it always eror404 . and i install php in the xampp then it stop working. this month i could not learn any thing.
Ted Sumner
Courses Plus Student 17,967 PointsPHP comes installed in XAMPP. Once XAMPP is installed, you have to make sure it is running. If it is running, then you have to have your project in the htdocs folder inside the xampp folder. You can access your file by entering http://localhost/folder_name in the browser of your choice. If your index.php file is not in a subfolder in the htdocs folder, then you just use localhost.
I am not sure what reinstalling PHP into xampp would do to the program. It may break it. If share your code I can paste it into my system and see if the code itself runs.
What do you see when you enter localhost in your browser?