The XAMPP Project Dashboard is a web-based tool that provides an interface to view, search, and open local web development projects stored in the htdocs directory of XAMPP. It allows users to easily navigate to their projects and open them in Visual Studio Code.
- Project Listing: Automatically lists all projects (directories) in the XAMPP
htdocsfolder. - Search Functionality: Enables searching for projects by name.
- Open in VS Code: Provides a button to open projects directly in Visual Studio Code.
- Last Accessed Date: Displays the last modification date of each project.
- Page Refresh Button: Refreshes the page without resubmitting the form.
- phpMyAdmin Access: Quick access to phpMyAdmin from the dashboard.
- Install XAMPP and ensure Apache is running.
- Install Visual Studio Code and add it to the system path (
codecommand should be available in the terminal).
- Place the
dashboardfolder inside thehtdocsdirectory. - Ensure the following folder structure:
htdocs/ ├── dashboard/ │ ├── index.php │ ├── bootstrap.css │ ├── bootstrap.bundle.js │ ├── bootstrap.js │ ├── resources/ │ │ ├── vscIcon.png - Open
http://localhost/dashboard/in your browser.
- Click on the "XAMPP Project Dashboard" title at the top of the page.
- This will collapse the menu, giving you access to additional options, including:
- Refresh Page button: Refresh the page without resubmitting the form.
- phpMyAdmin Access: Quick access to phpMyAdmin for managing databases.
- Enter the project name in the search bar.
- Click the "Search" button to filter the projects.
- Click the "Open in VS Code" button next to the project.
- The project will be opened in Visual Studio Code.
- Update the
index.phpfile in the XAMPPhtdocsfolder to redirect to your project by modifying it as follows:<?php header('Location: '.$uri.'/your_desired_name/'); exit(); ?>
- Scans the
htdocsdirectory for project folders. - Handles the form submission to search projects and open them in VS Code.
- Uses
shell_execto run the VS Code command.
- The
refreshPage()function reloads the page without form resubmission to avoid duplicate requests.
if (isset($_POST['open_code'])) {
$projectDir = $_POST['open_code'];
$escapedDir = escapeshellarg($projectDir);
$command = "code $escapedDir";
shell_exec($command);
echo "VS Code opened for: " . htmlspecialchars($projectDir);
}- Ensure VS Code is installed and added to the system path.
- Try running
codein the command prompt to verify. - Check file paths for Windows compatibility (use double backslashes
\\).
- Ensure there are directories inside
htdocs. - Check folder permissions.
If shell_exec is not functioning, follow these steps:
- Check if PHP has
shell_execenabled by running:var_dump(function_exists('shell_exec'));
- If disabled, enable it in
php.iniby removing it from thedisable_functionslist:disable_functions = - Restart Apache after making changes.
- Ensure the PHP script has sufficient execution permissions.
This project is open-source and can be freely modified and distributed.
Enjoy using the XAMPP Project Dashboard!
A PetzTech contribution 2025-2026

