Copier un fichier dans un autre

Author:


Download

<?php
    $nom_fichier = 'utilisateur.txt';
    $nom_fichier2 = $nom_fichier . '.tmp';
    $result = copy($nom_fichier, $nom_fichier2);
    if ($result)
    {
        print "$nom_fichier copié dans $nom_fichier2.
        avec succès";
    } else
    {
        print "Impossible de copier le $nom_fichier
        dans $nom_fichier2!";
    }
?>

Leave a Reply

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


two + 5 =