File "check_file_exists02.php"

Full Path: /home/analogde/www/FTP/Monsta-FTP-master/check_file_exists02.php
File size: 673 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
// Chemin vers le fichier image
$imagePath = '93522827_016_5bab.jpg';

// Vérifier si le fichier existe
if (file_exists($imagePath)) 
{

    echo " existe....";

    /*// 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';

    echo "dfsfdgf";
}
?>