PHP: Ouvrir un Répertoire

Author:


Download

<?php
  if (file_exists("fichier"))
  {
    if (is_dir ("fichier"))
    {
       $fI = opendir("fichier") or die (" Impossible d'ouvrir ce répertoire!");
       echo "Répertoire ouvert avec succès";
       closedir ($fI);
    }
  }
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


seven − 5 =