My XAMPP Dashboard now lists subfolders

My XAMPP Dashboard now lists all the subfolders in my htdocs folder

Following my post about Studio by WordPress.com, I’m still using XAMPP for a few projects.

By default, XAMPP offers a dashboard page at http://localhost/dashboard/ which besides some welcome blurb includes a few useful links such as to phpMyAdmin (for managing the MariaDB database).

Something I’ve often wished that it had was a way to detect the folders within htdocs and offer links to them. So, I’ve written my own.

You can find the code on my GitHub.

Code

Here’s the code:

What it does

What it does is scans the parent directory for other directories, filters out the default XAMPP folder names (dashboard, webalizer and xampp), then outputs the directories with links to an unordered list.

How to use it

  1. Navigate to xampp/dashboard/.
  2. Change index.html to index.php.
  3. Insert the code before the Community H3 heading row div.
  4. Er… that’s it!
  5. Enjoy!

Published by

Gareth Saunders

I’m Gareth J M Saunders, 54 years old, 6′ 4″, father of three (including twins). Enneagram type FOUR and introvert (INFJ), I am a non-stipendiary priest in the Scottish Episcopal Church, I sing with the NYCGB alumni choir, play guitar, play mahjong, write, draw and laugh… Scrum Master at Animal Friends Insurance. Former Scrum Master at Safeguard Global, Sky and Vision/Cegedim. Former web architect and agile project manager at the University of St Andrews and previously warden at Agnes Blackadder Hall.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.