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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -