Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Using PHP with MySQL Connecting PHP to MySQL Getting Started with PDO

How do I open htdocs directory? No launch pad. Using PHP with MySQL. Getting Started with PDO. Downloaded files.

don't know how to open htdocs file the same way as shown in the video. Please advise. Do I need to download something else? have Xampp.

2 Answers

Greg Kaleka
Greg Kaleka
39,016 Points

Hi Carla,

Here's a video that explains how to change where XAMPP looks for the root of your project. It shows where the htdocs folder is by default with XAMPP. Might be helpful.

what application do I use to open the php files? Do I need to download a Netbeans IDE?

Thanks, Greg. That is a good video and easy to understand. However, I was actually trying to figure out what program, etc. to open the htdoc files in. Since there isn't a launch pad I have the files saved to the path where htdocs is, but what application do I open them with? No launch pad on the video.

Greg Kaleka
Greg Kaleka
39,016 Points

Hi Carla,

You need a text editor to open the htdoc file. I assume you have one you're using to edit other files (HTML, CSS, PHP files, etc.), but if not, I recommend Sublime Text. It's free unless you want to pay :smile:.