<?php
echo "Current directory: " . __DIR__ . "<br>";
echo "Two levels up: " . realpath(__DIR__ . '/../../') . "<br>";
echo "Laravel root (relative): " . realpath(__DIR__ . '/../../idrbusinessconsultancy') . "<br>";
echo "Laravel root (absolute): /home/kr6oolv8ygcp/idrbusinessconsultancy<br>";

$laravelRoot = '/home/kr6oolv8ygcp/idrbusinessconsultancy';
echo "<br>Checking paths:<br>";
echo "Laravel dir exists? " . (is_dir($laravelRoot) ? 'YES ✅' : 'NO ❌') . "<br>";
echo "Vendor exists? " . (file_exists($laravelRoot . '/vendor/autoload.php') ? 'YES ✅' : 'NO ❌') . "<br>";
echo "Bootstrap exists? " . (file_exists($laravelRoot . '/bootstrap/app.php') ? 'YES ✅' : 'NO ❌') . "<br>";
echo ".env exists? " . (file_exists($laravelRoot . '/.env') ? 'YES ✅' : 'NO ❌') . "<br>";
?>