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

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  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.