Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
English Site | German Site 

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / copy
copy

copy

(PHP 3, PHP 4 )

copy -- Kopiert eine Datei

Beschreibung

int copy ( string source, string dest)

Die Funktion copy() kopiert eine Datei. Sie gibt TRUE zurück, wenn der Kopiervorgang erfolgreich war, andernfalls FALSE.

Beispiel 1. copy()

if (!copy($file, $file.'.bak')) {
    print ("failed to copy $file...<br>\n");
}

Anmerkung: Ab PHP 4.3.0 können die Parameter source und dest auch URLs sein, wenn "fopen wrappers" aktiviert ist. Weitere Details hierzu finden Sie unter fopen().

Warnung

Sollte die Zieldatei bereits existieren, wird sie überschrieben.

Siehe auch move_uploaded_file(), rename(), und den Abschnitt über Steuerung von Dateiuploads.


© 1998-2007 Gold Vision Communications All Rights Reserved.