How copy() php works ? overwritting contents or adds? -
i think don't understand how copy()
works...
it overwritting contents of orginal file in destination file or adds content ?
$originale = '/var/www/sito/pagina.php'; $copia = '/var/www/sito_backup/backup_pagina.php'; copy($originale,$copia);
the doc copy() says:
warning if destination file exists, overwritten.
if need different behavior have @ fopen() , $mode
parameter.
Comments
Post a Comment