File "affichage_racine02.php"
Full Path: /home/analogde/www/FTP/Monsta-FTP-master/affichage_racine02.php
File size: 633 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
// Chemin vers le fichier image
$imagePath = 'zzz_08-07-2024_21_14_34____rev_1___.jpg';
// Vérifier si le fichier existe
if (file_exists($imagePath)) {
// Définir le type de contenu (MIME type) pour l'image
$mimeType = mime_content_type($imagePath);
// Envoyer les en-têtes HTTP appropriés
header('Content-Type: ' . $mimeType);
header('Content-Length: ' . filesize($imagePath));
// Lire et afficher le contenu du fichier image
readfile($imagePath);
} else {
// Si le fichier n'existe pas, afficher un message d'erreur
header('HTTP/1.0 404 Not Found');
echo 'Image not found';
}
?>