Development Tools Using PHP with MySQL Connecting PHP to MySQL Creating the Products Table

Fabricio Portillo
Fabricio Portillo
16,718 Points

opening shirts for mike project

I dl xampp and installed it on my laptop to work on a personal project non related to anything on treehouse. i saved my project in xampp/htdocs. can I work on the "shirts for mike" project if i save htdocs? what will my localhost load as the index page? the shirts for mike or my personal project?

1 Answer

Kevin VanderWulp
Kevin VanderWulp
5,178 Points

That depends on how your htdocs folder is set up. If you have your original project set up directly in the htdocs folder and not in a subfolder inside of the htdocs folder, and you copy the Mike the Frog site and paste it directly into the htdocs folder, you will overwrite your original project files and it will more than like show the Mike the Frog site. If you want to have multiple projects in the htdocs folder, you have to have subdirectories for each project inside of the htdocs folder. Then when you go to http://localhost, it will show you directory information of the htdocs folder and let you select any subfolders inside of the htdocs folder. When you open any subdirectory that has a index.html or index.php file, it will load that index page.