@echo off
echo ===== PHP Path Checker =====
echo.
echo This script will:
echo 1. Check if PHP is available in your XAMPP installation
echo 2. Show the path to use in VS Code settings
echo.

echo Checking PHP installation in XAMPP...
if exist "C:\xampp\php\php.exe" (
    echo.
    echo PHP found at: C:\xampp\php\php.exe
    echo.
    echo You should add this path to your VS Code settings.json:
    echo.
    echo "php.validate.executablePath": "C:\\xampp\\php\\php.exe"
    echo.
) else (
    echo.
    echo PHP executable not found at the expected location.
    echo Please make sure XAMPP is properly installed.
    echo.
)

echo Checking PHP version...
"C:\xampp\php\php.exe" -v

pause
