<?php // Chemin vers le fichier image $imagePath = '93522827_016_5bab.jpg'; $imagePath = "https://analog-design.net/PATRICE/password.docx" ."<br>"; echo $_SERVER['DOCUMENT_ROOT'] ."<br>"; $imagePath = "/home/analogde/www/PATRICE/password.docx"; // Vérifier si le fichier existe if (file_exists($imagePath)) { echo " existe...."; } else { echo "dfsfdgf"; } ?>