Créer une copie d’un fichier

Author:


Download

<html>

 <head>
  <title>Copier un Fichier en PHP</title>
 <head>

 <body>

<?php
  $source = "./utilisateur.txt";
  $dest = "./sauvegarde.bak";

  if( copy( $source, $dest ) )
  {
    $msg = "Copie terminé avec succès";
  }
  else
  {
    $msg = "Impossible de copier";
  }
  echo($msg);
?>

 </body>

</html>

Leave a Reply

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


5 × = forty