Files
HKW/forms/test-paths.php
2026-02-03 09:01:55 +01:00

26 lines
731 B
PHP

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$vendorDir = dirname(__DIR__) . '/assets/vendor';
$files = [
'/phpmailer/src/Exception.php',
'/phpmailer/src/PHPMailer.php',
'/phpmailer/src/SMTP.php'
];
echo "<h2>Pfad-Test</h2>";
echo "Vendor Directory: " . $vendorDir . "<br><br>";
foreach ($files as $file) {
$fullPath = $vendorDir . $file;
echo "Checking: " . $fullPath . "<br>";
if (file_exists($fullPath)) {
echo "✅ Datei existiert<br>";
echo "Dateirechte: " . substr(sprintf('%o', fileperms($fullPath)), -4) . "<br>";
echo "Dateigröße: " . filesize($fullPath) . " bytes<br>";
} else {
echo "❌ Datei nicht gefunden<br>";
}
echo "<br>";
}