Disons que j'ai un fichier test.php
en foo
ainsi que bar
. Comment puis-je remplacer bar/test.php
avec foo/test.php
en utilisant PHP
? Je suis sous Windows XP. Une solution multiplateforme serait parfaite, mais je préfère Windows.
Fait copy( 'foo/test.php', 'bar/test.php' )
créer le bar
s'il n'existe pas déjà ?